From a0727e709f67e44d9759597f83967e6444cf73e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Feb 2023 15:27:28 +0800 Subject: [PATCH] Add table class for rows with dividers --- app/assets/stylesheets/components/tables.css | 12 +++++++++++- app/views/admin/donations/index.html.erb | 2 +- app/views/admin/invitations/index.html.erb | 2 +- app/views/admin/lightning/index.html.erb | 2 +- app/views/admin/users/index.html.erb | 2 +- app/views/admin/users/show.html.erb | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/components/tables.css b/app/assets/stylesheets/components/tables.css index 1a385b2..14fb4af 100644 --- a/app/assets/stylesheets/components/tables.css +++ b/app/assets/stylesheets/components/tables.css @@ -20,7 +20,17 @@ @apply pr-2; } - table td { + table td, tbody th { @apply py-2; } + + table.divided { + @apply divide-y divide-gray-300; + } + table.divided tbody { + @apply divide-y divide-gray-200; + } + table.divided td, table.divided tbody th { + @apply py-3; + } } diff --git a/app/views/admin/donations/index.html.erb b/app/views/admin/donations/index.html.erb index 0f57949..0876cd7 100644 --- a/app/views/admin/donations/index.html.erb +++ b/app/views/admin/donations/index.html.erb @@ -21,7 +21,7 @@
<% if @donations.any? %>

Recent Donations

- +
diff --git a/app/views/admin/invitations/index.html.erb b/app/views/admin/invitations/index.html.erb index 1bc5517..a49491e 100644 --- a/app/views/admin/invitations/index.html.erb +++ b/app/views/admin/invitations/index.html.erb @@ -24,7 +24,7 @@ <% if @invitations_used.any? %>

Recently Accepted

-
User
+
diff --git a/app/views/admin/lightning/index.html.erb b/app/views/admin/lightning/index.html.erb index 2c099cb..04c4507 100644 --- a/app/views/admin/lightning/index.html.erb +++ b/app/views/admin/lightning/index.html.erb @@ -20,7 +20,7 @@

Accounts

-
Token
+
diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index d78a4af..8bc4db3 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -30,7 +30,7 @@ <% end %>
-
LN Account
+
diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb index 8fbf1c1..ef8dda2 100644 --- a/app/views/admin/users/show.html.erb +++ b/app/views/admin/users/show.html.erb @@ -3,7 +3,7 @@ <%= render MainSimpleComponent.new do %>

Account

-
UID
+
Created at