From b62bd200edbcc8c088e15caf191dfb19fb616898 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 10 Oct 2024 13:03:46 +0300 Subject: [PATCH] fix layout --- app/views/submit_form/show.html.erb | 7 ++++--- app/views/templates/_submission.html.erb | 18 ++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/app/views/submit_form/show.html.erb b/app/views/submit_form/show.html.erb index 29c2651f..eb6c0b00 100644 --- a/app/views/submit_form/show.html.erb +++ b/app/views/submit_form/show.html.erb @@ -21,12 +21,13 @@ <% end %> - - <%= t('download') %> + + <%= svg_icon('download', class: 'w-6 h-6 inline md:hidden') %> + diff --git a/app/views/templates/_submission.html.erb b/app/views/templates/_submission.html.erb index 01f17a76..1ba69fb1 100644 --- a/app/views/templates/_submission.html.erb +++ b/app/views/templates/_submission.html.erb @@ -80,14 +80,16 @@ <% elsif !submission.archived_at? && !template.archived_at? && !submission.expired? && !submitter.declined_at? %> <% if current_user.email == submitter.email %> - - - <% if t('sign_now').length < 12 %> - <%= svg_icon('writing_sign', class: 'w-4 h-4 stroke-2') %> - <% end %> - <%= t('sign_now') %> - - +
+ + + <% if t('sign_now').length < 12 %> + <%= svg_icon('writing_sign', class: 'w-4 h-4 stroke-2') %> + <% end %> + <%= t('sign_now') %> + + +
<% else %>
<%= render 'shared/clipboard_copy', text: submit_form_url(slug: submitter.slug), class: 'btn btn-sm btn-neutral text-white md:w-36 flex z-[1]', icon_class: 'w-6 h-6 text-white', copy_title: t('copy_link').length < 10 ? t('copy_link') : t('copy'), copy_title_md: t('copy'), copied_title_md: t('copied') %>