Skip to content

Commit

Permalink
feat: a stable table
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso authored and Zephyruso committed Sep 5, 2023
1 parent 0115daf commit e19e53d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ export default () => {
enableSorting: false,
header: () => <span>{t('close')}</span>,
cell: ({ row }) => (
<div class="flex h-full items-center">
<div class="flex h-4 items-center">
<Button
class="btn-circle btn-xs"
onClick={() => onCloseConnection(row.id)}
>
<IconCircleX size="18" />
<IconCircleX size="16" />
</Button>
</div>
),
Expand Down Expand Up @@ -268,7 +268,7 @@ export default () => {

<div class="overflow-x-auto whitespace-nowrap rounded-md bg-base-300">
<table class="table table-zebra table-xs relative rounded-none">
<thead class="sticky top-0 z-10">
<thead class="sticky top-0 z-10 h-8">
<For each={table.getHeaderGroups()}>
{(headerGroup) => (
<tr>
Expand Down Expand Up @@ -308,11 +308,7 @@ export default () => {
<tbody>
<For each={table.getRowModel().rows}>
{(row) => (
<tr
class={twMerge(
'hover:!bg-primary hover:text-primary-content',
)}
>
<tr class="h-8 hover:!bg-primary hover:text-primary-content">
<For each={row.getVisibleCells()}>
{(cell) => (
<td
Expand Down

0 comments on commit e19e53d

Please sign in to comment.