Skip to content

Commit 037c0c0

Browse files
sergiiopmclaude
andcommitted
fix(web): folder rows no longer jump at larger interface font sizes
Folder rows reserved a fixed 36px (54px multiline) through contain-intrinsic-size, but their real height is h-9 (2.25rem), which grows with the interface font size. The list motion measures rows right after they mount, before content-visibility lays them out, so at 20px it stored each new row 9px short and the next collapse animated rows that should not move. Sizing the placeholder in spacing units keeps it equal to the real row at every font size and unchanged at the 16px default. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 575579d commit 037c0c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/sidebar/SidebarThreadRow.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,8 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
11961196
{...sortableRootProps}
11971197
{...(fileDropHandlers ?? {})}
11981198
className={cn(
1199-
"list-none [content-visibility:auto] [contain-intrinsic-size:auto_36px]",
1200-
metaLine !== null && multiline && "[contain-intrinsic-size:auto_54px]",
1199+
"list-none [content-visibility:auto] [contain-intrinsic-size:auto_--spacing(9)]",
1200+
metaLine !== null && multiline && "[contain-intrinsic-size:auto_--spacing(13.5)]",
12011201
sortable?.isDragging && "relative z-20",
12021202
)}
12031203
>

0 commit comments

Comments
 (0)