Skip to content

Commit 3c73c97

Browse files
authored
Merge pull request #197 from taleshape-com/table-sticky-header
Sticky table headers for full-width tables
2 parents caa19ba + 2286178 commit 3c73c97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/src/components/dashboard/DashboardTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function DashboardTable ({ headers, data }: TableProps) {
2424
return (
2525
<TableRoot>
2626
<Table>
27-
<TableHead className="z-10">
27+
<TableHead className="z-10 sticky top-0">
2828
<TableRow>
2929
{headers.map((header) => (
3030
<TableHeaderCell

ui/src/components/dashboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ const renderContent = (
571571
}
572572
return (
573573
<div
574-
className={cx("overflow-auto", { "h-full": numQueriesInSection > 1 })}
574+
className={cx({ "overflow-auto h-full": numQueriesInSection > 1 })}
575575
>
576576
<DashboardTable headers={query.columns} data={query.rows as (string | number | boolean)[][]} />
577577
</div>

0 commit comments

Comments
 (0)