Skip to content

Commit d8d3e9f

Browse files
committed
fix(calendar): adjust day cell styles for better aspect ratio handling if table row has only child
1 parent 7e0b7e3 commit d8d3e9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dashboard/src/components/ui/calendar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function Calendar({
6262
week_number: cn('text-muted-foreground select-none text-[0.8rem]', defaultClassNames.week_number),
6363
day: cn(
6464
'group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md',
65+
'[tr:has(td:only-child)_&]:aspect-auto [tr:has(td:only-child)_&]:w-[calc(100%/7)]',
6566
defaultClassNames.day,
6667
),
6768
range_start: cn('bg-accent rounded-l-md', defaultClassNames.range_start),

0 commit comments

Comments
 (0)