From c4b7be3925f1ed0c02c0bc1eef31b5b3fd0787f5 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 31 Jul 2026 12:46:34 +0300 Subject: [PATCH] fix mobile tabs --- app/views/templates_preferences/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/templates_preferences/show.html.erb b/app/views/templates_preferences/show.html.erb index df67e61b..5ef07981 100644 --- a/app/views/templates_preferences/show.html.erb +++ b/app/views/templates_preferences/show.html.erb @@ -3,14 +3,14 @@ <% show_recipients = @template.submitters.to_a.length > 1 %> <% options = [[t('general'), 'general']] %> <% options << [t('recipients'), 'recipients'] if show_recipients %> - <% options << [t('api_and_embedding'), 'api'] if show_api %> + <% options << [safe_join([tag.span('API', class: 'md:hidden'), tag.span(t('api_and_embedding'), class: 'hidden md:inline')]), 'api'] if show_api %> <% if options.size > 1 %>
<% options.each_with_index do |(label, value), index| %> <%= radio_button_tag 'option', value, value == 'general', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %> -