fix minor mobile UI issues

This commit is contained in:
Alex Turchyn
2024-01-20 17:24:19 +02:00
committed by Pete Matsyburka
parent 6253e80a70
commit 0a00fe6ab8
7 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -3,9 +3,9 @@
<toggle-visible data-element-ids="<%= options.map(&:last).to_json %>" class="relative text-center mt-4 block">
<div class="join">
<% options.each_with_index do |(label, value), index| %>
<span>
<span class="<%= '!rounded-s-full' if index.zero? %> btn btn-focus btn-sm join-item md:w-28 normal-case">
<%= radio_button_tag 'option', value, value == 'email', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %>
<label for="option_<%= value %>" class="<%= '!rounded-s-full' if index.zero? %> btn btn-focus btn-sm join-item w-28 peer-checked:btn-active normal-case">
<label for="option_<%= value %>" class="peer-checked:btn-active">
<%= label %>
</label>
</span>