Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): show unlinked icon when viewport aspect ratio is unlocked (#6509)

Utkarsh Patil2fab18e289bd
diff --git a/apps/web/src/browser/BrowserDeviceToolbar.tsx b/apps/web/src/browser/BrowserDeviceToolbar.tsx
index f20ab0b37..cd33bd216 100644
--- a/apps/web/src/browser/BrowserDeviceToolbar.tsx
+++ b/apps/web/src/browser/BrowserDeviceToolbar.tsx
@@ -7,7 +7,7 @@ import {
type PreviewViewportSetting,
} from "@t3tools/contracts";
import { PREVIEW_VIEWPORT_PRESETS, resolvePreviewViewport } from "@t3tools/shared/previewViewport";
-import { Link2, X } from "lucide-react";
+import { Link2, Unlink2, X } from "lucide-react";
import { useState } from "react";
import { Button } from "~/components/ui/button";
@@ -310,7 +310,11 @@ export function BrowserDeviceToolbar({
onPointerDown={(event) => event.preventDefault()}
onClick={toggleAspectRatio}
>
- <Link2 className={cn(aspectRatio !== null && "text-foreground")} />
+ {aspectRatio === null ? (
+ <Unlink2 className={cn(aspectRatio !== null && "text-foreground")} />
+ ) : (
+ <Link2 className={cn(aspectRatio !== null && "text-foreground")} />
+ )}
</Button>
<Button
variant="ghost"