fix(web): show unlinked icon when viewport aspect ratio is unlocked - #6509
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved 3ea1725 This change is a minor UI adjustment that conditionally displays an Unlink2 or Link2 icon based on existing aspectRatio state. It's purely visual feedback with no runtime behavior changes beyond icon rendering. You can customize Macroscope's approvability policy. Learn more. |
## What's Changed * fix(mobile): prevent invalid HTML entities from crashing markdown by @Lucenx9 in pingdotgg/t3code#6495 * fix(web): avoid Clerk close button overlap by @t3-code[bot] in pingdotgg/t3code#6442 * fix(web): show unlinked icon when viewport aspect ratio is unlocked by @UtkarshUsername in pingdotgg/t3code#6509 * fix(web): scope pull request errors to their environment by @Adamulek123 in pingdotgg/t3code#6490 * fix(mobile): show a real settings cog in the Android sidebar header by @paul-vd in pingdotgg/t3code#6520 ## New Contributors * @Adamulek123 made their first contribution in pingdotgg/t3code#6490 * @paul-vd made their first contribution in pingdotgg/t3code#6520 **Full Changelog**: pingdotgg/t3code@v0.0.34-nightly.20260813.1087...v0.0.34-nightly.20260813.1088 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.34-nightly.20260813.1088
What Changed
Changed the aspect ratio lock button in the device toolbar of the in-app browser. The linked (locked) and unlinked (unlocked) states now use distinct icons: Link2 when the ratio is locked, Unlink2 (the matching broken-chain icon from Lucide) when it is unlocked.
Why
Both states previously rendered the same Link2 icon, which gave no visual signal of the current state. The difference was not clear visually. Unlink2 is the exact counterpart to Link2.
UI Changes
Before:


After:


Checklist
Note
Low Risk
Purely visual icon swap in the preview device toolbar with no logic or API changes.
Overview
The browser device toolbar aspect-ratio lock control now uses two icons instead of always showing
Link2:Unlink2when the ratio is unlocked (aspectRatio === null) andLink2when it is locked. Labels,aria-pressed, and toggle behavior are unchanged—only the icon reflects state.Reviewed by Cursor Bugbot for commit 3ea1725. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Show unlinked icon in
BrowserDeviceToolbarwhen viewport aspect ratio is unlockedThe aspect ratio toggle button previously always showed the
Link2icon regardless of lock state. It now conditionally rendersUnlink2whenaspectRatioisnullandLink2when locked.Macroscope summarized 207a588.