fix: remove duplicated px-3 class and improve readability (#29)
Clean up the sticky category cell className: remove the duplicated px-3 for top-level parents and break the long ternary into readable multi-line format. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8971e443d8
commit
64b7d8d11b
1 changed files with 5 additions and 3 deletions
|
|
@ -178,9 +178,11 @@ export default function BudgetVsActualTable({ data }: BudgetVsActualTableProps)
|
|||
}`}
|
||||
>
|
||||
<td className={`py-1.5 sticky left-0 z-10 ${
|
||||
isTopParent ? "px-3 bg-[color-mix(in_srgb,var(--muted)_30%,var(--card))]" :
|
||||
isIntermediateParent ? `${paddingClass} bg-[color-mix(in_srgb,var(--muted)_15%,var(--card))]` :
|
||||
`${paddingClass} bg-[var(--card)]`
|
||||
isTopParent
|
||||
? "px-3 bg-[color-mix(in_srgb,var(--muted)_30%,var(--card))]"
|
||||
: isIntermediateParent
|
||||
? `${paddingClass} bg-[color-mix(in_srgb,var(--muted)_15%,var(--card))]`
|
||||
: `${paddingClass} bg-[var(--card)]`
|
||||
}`}>
|
||||
<span className="flex items-center gap-2">
|
||||
<span
|
||||
|
|
|
|||
Loading…
Reference in a new issue