mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
render cell only if width specified
This commit is contained in:
1 parent
79f97d5555
commit
496f6c706b
1 file changed
+1
-1
@@ -22,7 +22,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' %>
|
||||
<% elsif field['type'] == 'cells' && area['cell_w'] %>
|
||||
<% 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| %>
|
||||
|
||||
Reference in new issue
Block a user