Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion example/parsar/src/components/ui/ledger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ export function LedgerRow({
...props
}: HTMLAttributes<HTMLDivElement>) {
const style: CSSProperties = { gridTemplateColumns: useContext(Columns) };
// Cells take their width from the columns, never from their content, so long text truncates
// instead of widening the row past the header.
return (
<div
style={style}
className={cn(
"group grid min-w-max min-h-14 items-center gap-4 border-b border-line-muted px-6 py-3 text-sm transition-colors last:border-b-0 hover:bg-surface-subtle/70 [&>span]:min-w-0 [&>span]:truncate",
"group grid min-w-max min-h-14 items-center gap-4 border-b border-line-muted px-6 py-3 text-sm transition-colors last:border-b-0 hover:bg-surface-subtle/70 [&>*]:[contain:inline-size] [&>span]:truncate",
className,
)}
{...props}
Expand Down
Loading