The best way to control Claude Code, Codex and more from any computer or phone
fix(web): show unlinked icon when viewport aspect ratio is unlocked (#6509)
Utkarsh Patil committed
Aug 14, 2026 at 01:33 UTC
2fab18e289bdb2b1b767f05a307729d0a0d1c002
1 file changed
+6
-2
apps/web/src/browser/BrowserDeviceToolbar.tsx
+6
-2
@@ -7,7 +7,7 @@ import {
7
type PreviewViewportSetting,
8
} from "@t3tools/contracts";
9
import { PREVIEW_VIEWPORT_PRESETS, resolvePreviewViewport } from "@t3tools/shared/previewViewport";
10
-import { Link2, X } from "lucide-react";
10
+import { Link2, Unlink2, X } from "lucide-react";
11
import { useState } from "react";
12
13
import { Button } from "~/components/ui/button";
@@ -310,7 +310,11 @@ export function BrowserDeviceToolbar({
310
onPointerDown={(event) => event.preventDefault()}
311
onClick={toggleAspectRatio}
312
>
313
- <Link2 className={cn(aspectRatio !== null && "text-foreground")} />
313
+ {aspectRatio === null ? (
314
+ <Unlink2 className={cn(aspectRatio !== null && "text-foreground")} />
315
+ ) : (
316
+ <Link2 className={cn(aspectRatio !== null && "text-foreground")} />
317
+ )}
318
</Button>
319
<Button
320
variant="ghost"