Skip to content

Commit

Permalink
FIX: Corrected padding on non-sortable columns.
Browse files Browse the repository at this point in the history
span.non-sortable in the GridField header relies on there being other, sortable columns in the list to get the padding
right. If there are no such columns (e.g. in a simple header), then the header is shown without padding, which is ugly.

This small change fixes that. Tested on Chrome and Firefox. 1px smaller than a sortable header on Firefox but still looks fine.
  • Loading branch information
Sam Minnee committed Mar 4, 2015
1 parent 2c752ad commit eb35f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion css/GridField.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scss/GridField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ $gf_grid_x: 16px;

span.non-sortable {
display:block;
padding: 6px 8px;
}
}

Expand Down

0 comments on commit eb35f26

Please sign in to comment.