Skip to content

Commit 1ba4335

Browse files
authored
Merge pull request #63 from fastruby/fix-max-width
Limit width of table cells to not go over 100% width
2 parents 4afb400 + e90e8de commit 1ba4335

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ GEM
101101
bootstrap-sass (3.4.1)
102102
autoprefixer-rails (>= 5.2.1)
103103
sassc (>= 2.0.0)
104-
brakeman (8.0.1)
104+
brakeman (8.0.2)
105105
racc
106106
builder (3.3.0)
107107
capybara (3.40.0)

app/assets/stylesheets/application.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ th {
117117
background-color: #f2f2f2;
118118
}
119119

120+
td:nth-child(1), td:nth-child(3) {
121+
max-width: 40vw;
122+
overflow: auto;
123+
}
124+
td:last-child {
125+
width: 120px;
126+
}
127+
120128
/* Banner styles - using styleguide colors where possible */
121129
.banner {
122130
position: fixed;

0 commit comments

Comments
 (0)