Skip to content

Commit

Permalink
Keep items columns readable
Browse files Browse the repository at this point in the history
On pages with long URLs the path column was stretching out and
squishing the “X items” columns.

* Add a minimum width to prevent this
  • Loading branch information
fofr committed May 26, 2015
1 parent 6ca3f69 commit 928f40d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/sortable_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
margin-left: 5px;
}
}

.item-count-column {
min-width: 100px;
}
2 changes: 1 addition & 1 deletion app/views/anonymous_feedback/organisations/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
last_90_days: '90 days',
}.each do |param, name| %>
<% sorted = @ordering == param.to_s %>
<th class="sortable-column<% if sorted %> sorted-column<% end %>">
<th class="<% unless param == :path %>item-count-column <% end %>sortable-column<% if sorted %> sorted-column<% end %>">
<% if sorted %>
<div>
<%= name %><span class="glyphicon glyphicon-arrow-down"></span>
Expand Down

0 comments on commit 928f40d

Please sign in to comment.