Skip to content

Commit

Permalink
Reduced total width of money bar graph so it does not go over the line
Browse files Browse the repository at this point in the history
  • Loading branch information
phillybroadbent committed Jul 26, 2023
1 parent e45be65 commit 1b21377
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lowfat/templates/lowfat/finances.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ <h2>Finances</h2>
<figure>
<div class="money-bar-graph">
{% if claimant.claimantship_spent > 0 %}
<span style="width:{% widthratio claimant.claimantship_spent 3000 100 %}%"
<span style="width:{% widthratio claimant.claimantship_spent 3000 90 %}%"
class="money-used"
title="Spent">
£{{ claimant.claimantship_spent|floatformat:2 }}
</span>
{% endif %}
{% if claimant.claimantship_committed > 0 %}
<span style="width:{% widthratio claimant.claimantship_committed 3000 100 %}%"
<span style="width:{% widthratio claimant.claimantship_committed 3000 90 %}%"
class="money-reserved"
title="Commited">
£{{ claimant.claimantship_committed|floatformat:2 }}
</span>
{% endif %}
{% if claimant.claimantship_available %}
<span style="width:{% widthratio claimant.claimantship_available 3000 100 %}%"
<span style="width:{% widthratio claimant.claimantship_available 3000 90 %}%"
class="money-available"
title="Available">
£{{ claimant.claimantship_available|floatformat:2 }}
</span>
{% endif %}
{% if claimant.claimantship_passed %}
<span style="width:{% widthratio claimant.claimantship_passed 3000 100 %}%"
<span style="width:{% widthratio claimant.claimantship_passed 3000 90 %}%"
class="money-passed"
title="Passed">
£{{ claimant.claimantship_passed|floatformat:2 }}
Expand Down

0 comments on commit 1b21377

Please sign in to comment.