Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix(docs): correct mobile copy page menu positioning (#976)

Darshan Paccha6f662f3a0e0d
diff --git a/apps/www/components/docs-copy-page.tsx b/apps/www/components/docs-copy-page.tsx
index 33774c17..1f90762f 100644
--- a/apps/www/components/docs-copy-page.tsx
+++ b/apps/www/components/docs-copy-page.tsx
@@ -12,7 +12,6 @@ import {
} from "@/components/ui/dropdown-menu"
import {
Popover,
- PopoverAnchor,
PopoverContent,
PopoverTrigger,
} from "@/components/ui/popover"
@@ -112,7 +111,6 @@ export function DocsCopyPage({ page, url }: { page: string; url: string }) {
return (
<Popover>
<div className="bg-secondary group/buttons relative flex rounded-lg *:[[data-slot=button]]:focus-visible:relative *:[[data-slot=button]]:focus-visible:z-10">
- <PopoverAnchor />
<Button
variant="secondary"
size="sm"
@@ -143,7 +141,7 @@ export function DocsCopyPage({ page, url }: { page: string; url: string }) {
</PopoverTrigger>
<PopoverContent
className="bg-background/70 dark:bg-background/60 w-52 !origin-center rounded-lg shadow-sm backdrop-blur-sm"
- align="start"
+ align="end"
>
{Object.entries(menuItems).map(([key, value]) => (
<Button