diff --git a/internal/site/src/components/lang-toggle.tsx b/internal/site/src/components/lang-toggle.tsx index ec0482be..448b7586 100644 --- a/internal/site/src/components/lang-toggle.tsx +++ b/internal/site/src/components/lang-toggle.tsx @@ -1,21 +1,29 @@ -import { useLingui } from "@lingui/react/macro" +import { Trans, useLingui } from "@lingui/react/macro" import { LanguagesIcon } from "lucide-react" import { Button } from "@/components/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu" import { dynamicActivate } from "@/lib/i18n" import languages from "@/lib/languages" import { cn } from "@/lib/utils" +import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip" export function LangToggle() { const { i18n } = useLingui() + const LangTrans = Language + return ( - - + + + + + + {LangTrans} + {languages.map(([lang, label, e]) => ( diff --git a/internal/site/src/components/mode-toggle.tsx b/internal/site/src/components/mode-toggle.tsx index acde0d4b..69a64081 100644 --- a/internal/site/src/components/mode-toggle.tsx +++ b/internal/site/src/components/mode-toggle.tsx @@ -2,19 +2,28 @@ import { t } from "@lingui/core/macro" import { MoonStarIcon, SunIcon } from "lucide-react" import { useTheme } from "@/components/theme-provider" import { Button } from "@/components/ui/button" +import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip" +import { Trans } from "@lingui/react/macro" export function ModeToggle() { const { theme, setTheme } = useTheme() return ( - + + + + + + Toggle theme + + ) } diff --git a/internal/site/src/components/navbar.tsx b/internal/site/src/components/navbar.tsx index 1cb569e5..cc223878 100644 --- a/internal/site/src/components/navbar.tsx +++ b/internal/site/src/components/navbar.tsx @@ -30,7 +30,7 @@ import { LangToggle } from "./lang-toggle" import { Logo } from "./logo" import { ModeToggle } from "./mode-toggle" import { $router, basePath, Link, prependBasePath } from "./router" -import { t } from "@lingui/core/macro" +import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip" const CommandPalette = lazy(() => import("./command-palette")) @@ -49,30 +49,52 @@ export default function Navbar() { + {/** biome-ignore lint/a11y/noStaticElementInteractions: ignore */}
import("@/components/routes/settings/general")}> - - - - - - + + + + + + + + All Containers + + + + + + + + + + S.M.A.R.T. + + - - - + + + + + + + + Settings + + - - {t`Toggle grid`} - - + + + + + {t`Toggle grid`} +
diff --git a/internal/site/src/components/ui/input-copy.tsx b/internal/site/src/components/ui/input-copy.tsx index 319faf0a..43194abe 100644 --- a/internal/site/src/components/ui/input-copy.tsx +++ b/internal/site/src/components/ui/input-copy.tsx @@ -3,7 +3,7 @@ import { CopyIcon } from "lucide-react" import { copyToClipboard } from "@/lib/utils" import { Button } from "./button" import { Input } from "./input" -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip" +import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip" export function InputCopy({ value, id, name }: { value: string; id: string; name: string }) { return ( @@ -14,25 +14,23 @@ export function InputCopy({ value, id, name }: { value: string; id: string; name "h-6 w-24 bg-linear-to-r rtl:bg-linear-to-l from-transparent to-background to-65% absolute top-2 end-1 pointer-events-none" } > - - - - - - -

- Click to copy -

-
-
-
+ + + + + +

+ Click to copy +

+
+
) } diff --git a/internal/site/src/components/ui/tooltip.tsx b/internal/site/src/components/ui/tooltip.tsx index d273e8f2..aa87bcd6 100644 --- a/internal/site/src/components/ui/tooltip.tsx +++ b/internal/site/src/components/ui/tooltip.tsx @@ -3,7 +3,7 @@ import type * as React from "react" import { cn } from "@/lib/utils" -function TooltipProvider({ delayDuration = 0, ...props }: React.ComponentProps) { +function TooltipProvider({ delayDuration = 50, ...props }: React.ComponentProps) { return }