From afeb6dd3186f24f9a812844e2556f146325fb425 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Wed, 17 Jan 2024 01:13:26 +0200 Subject: [PATCH] optimize submissions show page for mobile devices --- app/views/icons/_chevron_left.html.erb | 4 ++++ app/views/submissions/show.html.erb | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 app/views/icons/_chevron_left.html.erb diff --git a/app/views/icons/_chevron_left.html.erb b/app/views/icons/_chevron_left.html.erb new file mode 100644 index 00000000..389b06ad --- /dev/null +++ b/app/views/icons/_chevron_left.html.erb @@ -0,0 +1,4 @@ + + + + diff --git a/app/views/submissions/show.html.erb b/app/views/submissions/show.html.erb index 1c22ca0e..93f02f68 100644 --- a/app/views/submissions/show.html.erb +++ b/app/views/submissions/show.html.erb @@ -41,7 +41,7 @@ <% end %> -
+
<% fields_index = Templates.build_field_areas_index(@submission.template_fields || @submission.template.fields) %> <% values = @submission.submitters.reduce({}) { |acc, sub| acc.merge(sub.values) } %> @@ -71,7 +71,7 @@ <% end %>
- +
<%= render 'scripts/autosize_field' %>