Skip to content

Commit

Permalink
Merge pull request #75 from alphagov/graph-overlay-fix
Browse files Browse the repository at this point in the history
Update fix for bar chart within table cell
  • Loading branch information
fofr committed Nov 19, 2013
2 parents 186f012 + 3aa3316 commit 9145a6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/assets/stylesheets/hits.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
overflow: hidden;
}

.hits .remove-padding {
padding: 0;
}

.bar-chart-wrap {
position: relative;
height: 100%;
width: 100%;
margin: -8px;
}

.bar-chart-row {
Expand Down
2 changes: 1 addition & 1 deletion app/views/hits/_hits_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<%= hit.http_status %>
</abbr>
</td>
<td>
<td class="remove-padding">
<div class="bar-chart-wrap">
<%= render partial: 'bar_chart_row', locals: { count: hit.count, max: max, status: hit.http_status } %>
<span class="path"><%= link_to_hit(hit, @site.default_host) %></span>
Expand Down

0 comments on commit 9145a6a

Please sign in to comment.