Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1366 from YaleSTC/1363_availability_display
Browse files Browse the repository at this point in the history
[1363] Fix overflowing availability number
  • Loading branch information
orenyk committed Jan 3, 2016
2 parents eed946e + ac5a3c6 commit 6d94374
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/catalog/_index.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
margin-bottom: 19px;
}

.availability-num {
@include giant-number;
text-align: center;
}

.caption_cat { padding: 0px 9px 0px 9px; }

a.not-qualified-icon {
Expand Down
6 changes: 3 additions & 3 deletions app/views/catalog/_equipment_model_div.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
</h4>

<hr class="special-hr"/>
<div class="col-md-2">
<span class="giant-numbers" id="availability_<%= equipment_model.id %>">
<div class="col-md-3 availability-num">
<span id="availability_<%= equipment_model.id %>">
<%= availability_hash[equipment_model.id] %>
</span>
</div>

<p class="model_availability col-md-10">
<p class="model_availability col-md-9">
<%= available_string %>
</p>

Expand Down

0 comments on commit 6d94374

Please sign in to comment.