Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

make InlineBadgePopover scrollable

Steven Teye70888a2a335
diff --git a/apps/web/ui/shared/inline-badge-popover.tsx b/apps/web/ui/shared/inline-badge-popover.tsx
index c450d16a79..1b9f78d637 100644
--- a/apps/web/ui/shared/inline-badge-popover.tsx
+++ b/apps/web/ui/shared/inline-badge-popover.tsx
@@ -10,6 +10,7 @@ import {
RichTextArea,
RichTextProvider,
RichTextToolbar,
+ ScrollContainer,
useScrollProgress,
} from "@dub/ui";
import { cn, nFormatter } from "@dub/utils";
@@ -61,9 +62,9 @@ export function InlineBadgePopover({
align="start"
content={
<InlineBadgePopoverContext.Provider value={{ isOpen, setIsOpen }}>
- <div className="w-full min-w-32 p-1 text-sm sm:w-auto">
+ <ScrollContainer className="w-full min-w-32 max-h-[50dvh] min-h-0 overscroll-contain p-1 text-sm sm:w-auto">
{children}
- </div>
+ </ScrollContainer>
</InlineBadgePopoverContext.Provider>
}
onWheel={(e) => {