Skip to content

Commit cacc99c

Browse files
committed
style(web): table preview layout uses tailwind classes
1 parent 850ccff commit cacc99c

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎apps/web/src/components/files/VirtualTablePreview.tsx‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ export default function VirtualTablePreview(props: {
7575
return (
7676
<div
7777
ref={ref}
78-
className="relative min-h-0 flex-1 overflow-x-auto"
79-
style={{ contain: "strict" }}
78+
className="relative min-h-0 flex-1 overflow-x-auto contain-strict"
8079
onScroll={(event) => {
8180
event.currentTarget.style.setProperty(
8281
"--preview-scroll-left",
@@ -137,10 +136,7 @@ export default function VirtualTablePreview(props: {
137136
role="row"
138137
className="relative z-10 flex min-h-[29px] shrink-0 border-b border-border bg-muted/60 font-medium backdrop-blur"
139138
>
140-
<div
141-
className="sticky left-0 z-10 shrink-0 border-r border-border bg-background"
142-
style={{ width: rowHeader }}
143-
/>
139+
<div className="sticky left-0 z-10 w-14 shrink-0 border-r border-border bg-background" />
144140
<div style={{ width: offset(firstColumn), flexShrink: 0 }} />
145141
{columns.map((column) => (
146142
<Tooltip key={column}>

0 commit comments

Comments
 (0)