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