Add table class for rows with dividers

This commit is contained in:
Râu Cao 2023-02-25 15:27:28 +08:00
parent 55abbcc5ad
commit a0727e709f
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
6 changed files with 16 additions and 6 deletions

View File

@ -20,7 +20,17 @@
@apply pr-2; @apply pr-2;
} }
table td { table td, tbody th {
@apply py-2; @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;
}
} }

View File

@ -21,7 +21,7 @@
<section> <section>
<% if @donations.any? %> <% if @donations.any? %>
<h3>Recent Donations</h3> <h3>Recent Donations</h3>
<table> <table class="divided">
<thead> <thead>
<tr> <tr>
<th>User</th> <th>User</th>

View File

@ -24,7 +24,7 @@
<% if @invitations_used.any? %> <% if @invitations_used.any? %>
<section> <section>
<h3>Recently Accepted</h3> <h3>Recently Accepted</h3>
<table> <table class="divided">
<thead> <thead>
<tr> <tr>
<th>Token</th> <th>Token</th>

View File

@ -20,7 +20,7 @@
<section> <section>
<h3>Accounts</h3> <h3>Accounts</h3>
<table> <table class="divided">
<thead> <thead>
<tr> <tr>
<th>LN Account</th> <th>LN Account</th>

View File

@ -30,7 +30,7 @@
<% end %> <% end %>
<section> <section>
<table> <table class="divided">
<thead> <thead>
<tr> <tr>
<th>UID</th> <th>UID</th>

View File

@ -3,7 +3,7 @@
<%= render MainSimpleComponent.new do %> <%= render MainSimpleComponent.new do %>
<section> <section>
<h3>Account</h3> <h3>Account</h3>
<table class="w-1/2"> <table class="w-1/2 divided">
<tbody> <tbody>
<tr> <tr>
<th>Created at</th> <th>Created at</th>