diff --git a/app/assets/stylesheets/common/tables.scss b/app/assets/stylesheets/common/tables.scss index 32877aa73..551e9f650 100644 --- a/app/assets/stylesheets/common/tables.scss +++ b/app/assets/stylesheets/common/tables.scss @@ -40,6 +40,22 @@ table.striped { } } +/* + * A table where one column expands to fill the screen, while the + * other columns shrink to fit their contents. + */ +table.autofit { + td, th, .col-fit { + white-space: nowrap; + padding-right: 2em; + } + + .col-expand { + white-space: normal; + width: 100%; + } +} + table.search { tr { height: 2em; diff --git a/app/views/bans/index.html.erb b/app/views/bans/index.html.erb index d1011f82b..4ab5c8fff 100644 --- a/app/views/bans/index.html.erb +++ b/app/views/bans/index.html.erb @@ -2,7 +2,7 @@

Bans

- +
@@ -16,7 +16,7 @@ - +
User
<%= link_to_user(ban.user) %> <%= ban.expires_at %><%= format_text ban.reason, :ragel => true %><%= format_text ban.reason, :ragel => true %> <% if CurrentUser.is_moderator? %> <%= link_to "Edit", edit_ban_path(ban) %>