Skip to content

Commit 8dcad87

Browse files
committed
fix(compare): add min-w-0 to ColumnHeader per Greptile review
ColumnHeader (the Sim/competitor logo header cells in the two fr columns) still had default min-width: auto, so an unusually long competitor name could size the header to its min-content width and push the grid wider than its column allows, same root cause as the rows already fixed.
1 parent d32aca2 commit 8dcad87

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/sim/app/(landing)/comparison/components/comparison-table/comparison-table.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ function ColumnHeader({
5555
return (
5656
<div
5757
className={cn(
58-
'flex flex-col items-center gap-2 border-[var(--border-1)] border-b px-3 py-4 text-center',
58+
'flex min-w-0 flex-col items-center gap-2 border-[var(--border-1)] border-b px-3 py-4 text-center',
5959
isSim ? 'bg-[var(--surface-2)]' : 'bg-[var(--surface-1)]'
6060
)}
6161
>
6262
{iconTile}
63-
<span className='font-medium text-[var(--text-primary)] text-base'>{name}</span>
63+
<span className='w-full truncate font-medium text-[var(--text-primary)] text-base'>
64+
{name}
65+
</span>
6466
</div>
6567
)
6668
}

0 commit comments

Comments
 (0)