From 46e4004cf6a305303d72e7347c9341ca78d5653a Mon Sep 17 00:00:00 2001
From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
Date: Thu, 29 Feb 2024 09:15:03 -0600
Subject: [PATCH] use portal for tooltips
---
web/src/components/navigation/NavItem.tsx | 9 ++++++---
.../components/settings/SettingsNavItems.tsx | 17 +++++++++++------
2 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/web/src/components/navigation/NavItem.tsx b/web/src/components/navigation/NavItem.tsx
index 9e27c01fa..8eba96d2f 100644
--- a/web/src/components/navigation/NavItem.tsx
+++ b/web/src/components/navigation/NavItem.tsx
@@ -6,6 +6,7 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
+import { TooltipPortal } from "@radix-ui/react-tooltip";
const variants = {
primary: {
@@ -54,10 +55,12 @@ export default function NavItem({
+
+
+ {title}
+
+
-
- {title}
-
)
);
diff --git a/web/src/components/settings/SettingsNavItems.tsx b/web/src/components/settings/SettingsNavItems.tsx
index db42775d3..9875ad298 100644
--- a/web/src/components/settings/SettingsNavItems.tsx
+++ b/web/src/components/settings/SettingsNavItems.tsx
@@ -58,6 +58,7 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import ActivityIndicator from "../ui/activity-indicator";
+import { TooltipPortal } from "@radix-ui/react-tooltip";
type SettingsNavItemsProps = {
className?: string;
@@ -106,9 +107,11 @@ export default function SettingsNavItems({ className }: SettingsNavItemsProps) {
-
- Settings
-
+
+
+ Settings
+
+
@@ -249,9 +252,11 @@ export default function SettingsNavItems({ className }: SettingsNavItemsProps) {
-
- Account
-
+
+
+ Account
+
+
{restartDialogOpen && (