Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion apps/dashboard/components/date-range-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ export function DateRangePicker({
<span className="truncate">{formatDisplayRange(value)}</span>
</Popover.Trigger>

<Popover.Content className="w-auto overflow-hidden p-0" side="bottom">
<Popover.Content
className="w-auto overflow-hidden p-0"
disableAnchorTracking
side="bottom"
>
<div className="flex">
<div className="hidden w-36 shrink-0 border-border/60 border-r sm:block">
<div className="p-1.5">
Expand Down
9 changes: 8 additions & 1 deletion apps/dashboard/components/ds/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ function Content({
className,
children,
side = "bottom",
disableAnchorTracking = false,
...rest
}: ComponentPropsWithoutRef<typeof BasePopover.Popup> & {
side?: ComponentPropsWithoutRef<typeof BasePopover.Positioner>["side"];
disableAnchorTracking?: boolean;
}) {
return (
<BasePopover.Portal>
<BasePopover.Positioner className="z-50" side={side} sideOffset={6}>
<BasePopover.Positioner
className="z-50"
disableAnchorTracking={disableAnchorTracking}
side={side}
sideOffset={6}
>
<BasePopover.Popup
className={cn(
"w-72 max-w-[calc(100vw-1rem)] rounded-lg border border-border/60 bg-popover p-4",
Expand Down
Loading