From 7a7a2e49b7523e1a676b46c30cfd0473cfb2fb27 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Mon, 20 Apr 2020 11:51:10 +0200 Subject: [PATCH] Submission table tweaks smaller fontsize and use vertical scrolling for large tables --- app/assets/stylesheets/application.css.scss | 6 ++++++ app/views/forms/show.html.erb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 8405ae7..91236b0 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -59,5 +59,11 @@ body { } .table-wrapper { + overflow: auto; + overflow-y: scroll; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); +} + +.submission-table tbody { + font-size: 0.75em; } \ No newline at end of file diff --git a/app/views/forms/show.html.erb b/app/views/forms/show.html.erb index 7c103b4..7c44119 100644 --- a/app/views/forms/show.html.erb +++ b/app/views/forms/show.html.erb @@ -27,7 +27,7 @@
- +
<% @form.spreadsheet_headers.each do |value| %>