fix: preserve calendar touch targets
This commit is contained in:
@@ -73,7 +73,7 @@ function Calendar({
|
||||
defaultClassNames.dropdowns
|
||||
),
|
||||
dropdown_root: cn(
|
||||
"cn-calendar-dropdown-root relative rounded-(--cell-radius)",
|
||||
"cn-calendar-dropdown-root relative flex h-(--cell-size) items-center rounded-(--cell-radius)",
|
||||
defaultClassNames.dropdown_root
|
||||
),
|
||||
dropdown: cn(
|
||||
|
||||
@@ -37,7 +37,7 @@ function PopoverContent({
|
||||
<PopoverPrimitive.Popup
|
||||
data-slot="popover-content"
|
||||
className={cn(
|
||||
"z-50 flex w-fit max-w-[calc(100vw-var(--space-6))] origin-(--transform-origin) flex-col gap-2.5 rounded-lg border border-border bg-background p-2.5 text-sm text-foreground shadow-[var(--shadow-elevated)] outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
||||
"z-50 flex w-fit max-w-[calc(100vw-var(--space-6))] origin-(--transform-origin) flex-col gap-2.5 overflow-x-auto rounded-lg border border-border bg-background p-2.5 text-sm text-foreground shadow-[var(--shadow-elevated)] outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user