From a44d09e71a252b2bec1092478e21ef1d41510511 Mon Sep 17 00:00:00 2001 From: Suzanne Aitchison Date: Mon, 11 Apr 2022 19:07:59 +0100 Subject: [PATCH] Update table style for member index view (#17207) * add minimal table style * tweak table style vs member index specific style * rename * replace padding for smaller screens --- app/assets/stylesheets/components/tables.scss | 16 ++++++++++------ app/assets/stylesheets/config/_generator.scss | 3 ++- app/views/admin/users/_member_index.html.erb | 18 ++++++++++-------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/components/tables.scss b/app/assets/stylesheets/components/tables.scss index 879b4f135..d636b6a13 100644 --- a/app/assets/stylesheets/components/tables.scss +++ b/app/assets/stylesheets/components/tables.scss @@ -65,12 +65,6 @@ } } - &__lowercase { - th { - text-transform: none; - } - } - tbody { tr { &:first-child { @@ -114,4 +108,14 @@ } } } + + &--minimal { + th { + text-transform: none; + } + + td { + border-bottom: none; + } + } } diff --git a/app/assets/stylesheets/config/_generator.scss b/app/assets/stylesheets/config/_generator.scss index 60f0f5eb1..440a7e153 100644 --- a/app/assets/stylesheets/config/_generator.scss +++ b/app/assets/stylesheets/config/_generator.scss @@ -451,7 +451,8 @@ 'inline-block': inline-block, 'flex': flex, 'inline-flex': inline-flex, - 'grid': grid + 'grid': grid, + 'table': table ), (), true, diff --git a/app/views/admin/users/_member_index.html.erb b/app/views/admin/users/_member_index.html.erb index 85a95b712..d5ecf53ab 100644 --- a/app/views/admin/users/_member_index.html.erb +++ b/app/views/admin/users/_member_index.html.erb @@ -1,10 +1,12 @@ <%= javascript_packs_with_chunks_tag "admin/users/memberIndex", defer: true %> -
-
+
+
+

Members

<%= render "admin/users/index/tabs" %> -
+
<%= render "admin/users/index/controls" %> +
@@ -57,20 +59,20 @@ - - + + - + - + <% @users.includes([:organizations]).each do |user| %> -