Add version selector on document

Fix #166

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Jonathan
2025-07-08 14:59:26 +02:00
committed by Sacha Al Himdani
parent a4606f95f5
commit f114f3bc4a
14 changed files with 412 additions and 722 deletions

View File

@@ -3,7 +3,7 @@ import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
import { clsx } from "clsx";
import type { IconProps } from "../Icons/type.ts";
import { tv } from "tailwind-variants";
import { IconDotGrid1x3Horizontal } from "../Icons/IconDotGrid1x3Horizontal.tsx";
import { IconDotGrid1x3Horizontal } from "../Icons";
import { Button } from "../Button/Button.tsx";
type Props = PropsWithChildren<{
@@ -24,6 +24,10 @@ export function Dropdown({ children, toggle, className, open }: Props) {
)}
<DropdownMenu.Portal>
<DropdownMenu.Content
style={{
maxHeight:
"var(--radix-dropdown-menu-content-available-height)",
}}
className={dropdown({ className })}
sideOffset={5}
>