Skip to content

Commit b9da7f5

Browse files
committed
chore(frontend): Add IPv4 label tooltip
Signed-off-by: Maciek <tomczukmaciej@gmail.com>
1 parent 608cfa5 commit b9da7f5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

app/src/pages/setup/SetupScreen.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
AppWindow,
1111
Clipboard,
1212
Gamepad2,
13+
Info,
1314
Router,
1415
Smartphone,
1516
Tv2,
@@ -18,6 +19,7 @@ import AppleLogo from "@/assets/platforms/apple.svg";
1819
import LinuxLogo from "@/assets/platforms/linux.svg";
1920
import WindowsIcon from "@/assets/platforms/windows.svg";
2021
import { useAppStore, useProfileData } from "@/store/general";
22+
import { Tooltip } from "@/components/ui/tooltip";
2123
import VerificationBanner from '@/pages/setup/VerificationBanner';
2224
import modDNSLogoDarkTheme from '@/assets/logos/modDNS-dark-theme.svg';
2325
import modDNSLogoLightTheme from '@/assets/logos/modDNS-light-theme.svg';
@@ -184,8 +186,13 @@ export default function Setup({ profiles }: SetupProps): JSX.Element {
184186
aria-label={interactive ? `Copy ${label}` : undefined}
185187
onKeyDown={interactive ? (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); copyToClipboard(value as string, label); } } : undefined}
186188
>
187-
<span className="text-sm text-[var(--shadcn-ui-app-muted-foreground)] leading-[25.4px] select-none">
189+
<span className="text-sm text-[var(--shadcn-ui-app-muted-foreground)] leading-[25.4px] select-none inline-flex items-center gap-1">
188190
{label}
191+
{label === "IPv4" && (
192+
<Tooltip content="Note: Plain DNS is not supported. Must be used with DoH, DoT, or DoQ URI above." side="top" align="start" maxWidthClassName="max-w-[260px]">
193+
<Info className="w-3.5 h-3.5 text-[var(--shadcn-ui-app-muted-foreground)]" />
194+
</Tooltip>
195+
)}
189196
</span>
190197
<div className="inline-flex items-center justify-end gap-2">
191198
<span className="text-sm text-[var(--shadcn-ui-app-foreground)] leading-5 font-mono break-all select-all">

0 commit comments

Comments
 (0)