Skip to content

Commit

Permalink
fix: Add border above table footer (#2723)
Browse files Browse the repository at this point in the history
* fix: #2690 Add border above table footer

* fix: #2692 Multi-row table headers has borders
  • Loading branch information
Nekxio committed Apr 4, 2024
1 parent b998a51 commit 7d54475
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/styled/table.css
Expand Up @@ -25,14 +25,15 @@
@apply [@media(hover:hover)]:hover:bg-base-300;
}

:where(thead, tbody) {
:where(tr:not(:last-child)),
:where(tr:first-child:last-child) {
@apply border-b-base-200 border-b;
}
:where(thead tr, tbody tr:not(:last-child),tbody tr:first-child:last-child) {
@apply border-b-base-200 border-b;
}

:where(thead, tfoot) {
@apply text-base-content/60 whitespace-nowrap text-xs font-bold;
}

:where(tfoot) {
@apply border-t-base-200 border-t;
}
}

0 comments on commit 7d54475

Please sign in to comment.