diff --git a/src/renderer/src/components/ui/button/index.tsx b/src/renderer/src/components/ui/button/index.tsx index 85b21f5070..7711c6e47d 100644 --- a/src/renderer/src/components/ui/button/index.tsx +++ b/src/renderer/src/components/ui/button/index.tsx @@ -10,7 +10,12 @@ import type { OptionsOrDependencyArray } from "react-hotkeys-hook/dist/types" import { KbdCombined } from "../kbd/Kbd" import { LoadingCircle } from "../loading" -import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip" +import { + Tooltip, + TooltipContent, + TooltipPortal, + TooltipTrigger, +} from "../tooltip" import { buttonVariants, styledButtonVariant } from "./variants" export interface BaseButtonProps { @@ -124,19 +129,21 @@ export const ActionButton = React.forwardRef< {children} - - {tooltip} - {!!shortcut && ( -
- - {shortcut} - -
- )} -
+ + + {tooltip} + {!!shortcut && ( +
+ + {shortcut} + +
+ )} +
+
) diff --git a/src/renderer/src/components/ui/button/variants.tsx b/src/renderer/src/components/ui/button/variants.tsx index ab52136e9b..833313abd8 100644 --- a/src/renderer/src/components/ui/button/variants.tsx +++ b/src/renderer/src/components/ui/button/variants.tsx @@ -20,7 +20,7 @@ export const buttonVariants = cva( "border border-input bg-theme-background hover:bg-accent hover:text-accent-foreground", secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", - ghost: "hover:bg-zinc-500/10 px-1.5", + ghost: "hover:bg-zinc-500/10 dark:hover:bg-neutral-400/15 px-1.5", link: "text-primary underline-offset-4 hover:underline", }, },