mirror of
https://github.com/we-promise/sure.git
synced 2026-05-08 21:25:00 +00:00
* Update _balance_sheet.html.erb Update Balance Sheet to work on iPhone Pro Max without scrolling Signed-off-by: Derek Brown <browndw4@gmail.com> * Update _group_weight.html.erb Make the % icon smaller (5 bars not 10) to fit better on smaller format devices Signed-off-by: Derek Brown <browndw4@gmail.com> * Update _group_weight.html.erb Resolve Codex comment Signed-off-by: Derek Brown <browndw4@gmail.com> * Update _balance_sheet.html.erb Increasing width of the weight column Signed-off-by: Derek Brown <browndw4@gmail.com> --------- Signed-off-by: Derek Brown <browndw4@gmail.com>
13 lines
482 B
Plaintext
13 lines
482 B
Plaintext
<%# locals: (weight:, color:) %>
|
|
|
|
<% effective_weight = weight.presence || 0 %>
|
|
|
|
<div class="w-full flex items-center justify-between gap-2">
|
|
<div class="flex gap-[3px]">
|
|
<% 5.times do |i| %>
|
|
<div class="w-0.5 h-2.5 rounded-lg <%= i < (effective_weight / 20.0).ceil ? "" : "opacity-20" %>" style="background-color: <%= color %>;"></div>
|
|
<% end %>
|
|
</div>
|
|
<p class="text-sm privacy-sensitive"><%= number_to_percentage(effective_weight, precision: 0) %></p>
|
|
</div>
|