| ... | @@ -7,7 +7,7 @@ import { | ... | @@ -7,7 +7,7 @@ import { |
| 7 | type PreviewViewportSetting, | 7 | type PreviewViewportSetting, |
| 8 | } from "@t3tools/contracts"; | 8 | } from "@t3tools/contracts"; |
| 9 | import { PREVIEW_VIEWPORT_PRESETS, resolvePreviewViewport } from "@t3tools/shared/previewViewport"; | 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"; | 11 | import { useState } from "react"; |
| 12 | | 12 | |
| 13 | import { Button } from "~/components/ui/button"; | 13 | import { Button } from "~/components/ui/button"; |
| ... | @@ -310,7 +310,11 @@ export function BrowserDeviceToolbar({ | ... | @@ -310,7 +310,11 @@ export function BrowserDeviceToolbar({ |
| 310 | onPointerDown={(event) => event.preventDefault()} | 310 | onPointerDown={(event) => event.preventDefault()} |
| 311 | onClick={toggleAspectRatio} | 311 | onClick={toggleAspectRatio} |
| 312 | > | 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 | )} |
| 314 | </Button> | 318 | </Button> |
| 315 | <Button | 319 | <Button |
| 316 | variant="ghost" | 320 | variant="ghost" |