Permalink
Browse files

Merge pull request #874 from adrexia/gridfield-wrap-fix

BUG: Force gridfield to wrap on long content
  • Loading branch information...
2 parents 15a092a + 1a864d7 commit f861ff9dfa4cc7b10d42cb9371d139bbfca35a5f @chillu chillu committed Oct 31, 2012
Showing with 7 additions and 12 deletions.
  1. +1 −2 css/GridField.css
  2. +2 −2 css/UploadField.css
  3. +4 −8 scss/GridField.scss
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -157,21 +157,17 @@ $gf_grid_x: 16px;
cursor: pointer;
}
td {
+ width: auto;
+ max-width: 500px; //This number is semi-arbitary. It is acting as a percentage limit, rather than actually constricting the width to 500px.
+ word-wrap:break-word;
// Give browser some hints on which cols take priority:
// The last column (buttons) should always shrink to fit.
- // Overwritten for IE7, which doesn't support this.
- width: auto;
- white-space:nowrap;
+ // Overwritten for IE7, which doesn't support this.
&.col-buttons {
width: 40px;
padding:0 $gf_grid_x/2;
text-align: left;
}
-
- &.col-description {
- width: auto;
- }
-
&.col-listChildrenLink {
width:$gf_grid_x;
border-right:none;

0 comments on commit f861ff9

Please sign in to comment.