From 3b71f6b00f6f5ae716277b16ef46341b3a2efba2 Mon Sep 17 00:00:00 2001 From: Yannick Date: Thu, 16 Apr 2020 18:20:06 +0200 Subject: [PATCH] Fix table styling --- app/assets/stylesheets/application.css.scss | 4 ++ app/views/forms/show.html.erb | 56 ++++++++++----------- 2 files changed, 32 insertions(+), 28 deletions(-) diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 71872c4..7955a05 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -52,4 +52,8 @@ body { .button.google { background: rgb(225, 98, 89); color: white; +} + +.table-wrapper{ + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); } \ No newline at end of file diff --git a/app/views/forms/show.html.erb b/app/views/forms/show.html.erb index cd0d10a..64a82d1 100644 --- a/app/views/forms/show.html.erb +++ b/app/views/forms/show.html.erb @@ -1,32 +1,32 @@ -

<%= @form.title %>

-

- <%= submission_url(@form) %> -

-

- <%= link_to 'Google spreadsheet', @form.spreadsheet_url %> -

-
-
-
+
+
+

<%= @form.title %>

+

+ <%= submission_url(@form) %> +

+

+ <%= link_to 'Google spreadsheet', @form.spreadsheet_url %> +

+
- - - - <% @form.spreadsheet_headers.each do |value| %> - - <% end %> - - - - <% @submissions.each do |submission| %> - - <% @form.spreadsheet_headers.each do |column| %> +
+
<%= value %>
+ + + <% @form.spreadsheet_headers.each do |value| %> + + <% end %> + + + + <% @submissions.each do |submission| %> + + <% @form.spreadsheet_headers.each do |column| %> + <% end %> + <% end %> - - <% end %> - -
<%= value %>
<%= submission.data[column] %>
-
-
+ + +
\ No newline at end of file