mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: compact compare headers
This commit is contained in:
1 parent
4ff8d77460
commit
5adbec25c4
3 files changed
+19
-15
No files matched your search
@@ -1,12 +1,16 @@
|
||||
import { Table } from "@radix-ui/themes";
|
||||
import type { RowHeaderCellProps } from "@radix-ui/themes/src/components/table.js";
|
||||
|
||||
export function StickyRowHeaderCell({ style, ...props }: RowHeaderCellProps) {
|
||||
interface Props extends RowHeaderCellProps {
|
||||
left?: string | number;
|
||||
}
|
||||
|
||||
export function StickyRowHeaderCell({ style, left = 0, ...props }: Props) {
|
||||
return (
|
||||
<Table.RowHeaderCell
|
||||
style={{
|
||||
position: "sticky",
|
||||
left: 0,
|
||||
left,
|
||||
backgroundColor: "var(--color-panel)",
|
||||
...style,
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user