Skip to content

Commit

Permalink
Wrap table cell contents instead of CSS truncation (thoughtbot#482)
Browse files Browse the repository at this point in the history
* Wrap table cell contents instead of CSS truncation

This allows table cell contents to wrap to a new line instead of
overflowing the cell's max width, and will also force line breaks on
strings of text that are too long without a natural break.

* Remove table wrapping CSS

The word-wrap property doesn't help unless the column width is fixed, so
return this to close to the default.
  • Loading branch information
iangreenleaf authored and jonatack committed May 6, 2017
1 parent ee2d125 commit 8696939
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/assets/stylesheets/administrate/base/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ td {
font-kerning: normal;
font-variant-ligatures: common-ligatures, contextual;
font-variant-numeric: lining-nums, tabular-nums;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: normal;
}

0 comments on commit 8696939

Please sign in to comment.