Skip to content

Commit

Permalink
fix cell
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Aug 3, 2024
1 parent d0c49ac commit 1dac3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/submissions/_value.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<%= svg_icon('check', class: "aspect-square #{area['w'] > area['h'] ? '!w-auto !h-full' : '!w-full !h-auto'}") %>
</div>
<% end %>
<% elsif field['type'] == 'cells' && area['cell_w'] %>
<% elsif field['type'] == 'cells' && area['cell_w'].to_f > 0.0 %>
<% cell_width = area['cell_w'] / area['w'] * 100 %>
<div class="w-full flex items-center">
<% (0..(area['w'] / area['cell_w']).ceil).each do |index| %>
Expand Down

0 comments on commit 1dac3fe

Please sign in to comment.