fix(input-format): file-field mode toggle uses canonical ⇄ icon on the label row#5304
Conversation
…n the label row The file field's mode switch was a right-aligned 'Enter JSON manually' text link on its own row, causing awkward spacing above the control. Replace it with the canonical sub-block mode toggle: a compact left-right arrows (ArrowLeftRight) icon button with a tooltip, placed on the 'Value' label row (label left, toggle right), matching the Files subblock header. Removes the extra row and aligns spacing.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview The toggle sits on the Value label row (label left, icon right) with a top tooltip and aria-label; upload/JSON rendering is unchanged and still hidden when the stored value cannot be represented losslessly in the uploader. Mode resolution is centralized in Reviewed by Cursor Bugbot for commit db20421. Configure here. |
Greptile SummaryThis PR moves the file-field mode switch into the Value label row.
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "fix(input-format): file-field mode toggl..." | Re-trigger Greptile |
Summary
ArrowLeftRight) icon button with a tooltip, placed on the "Value" label row (label left, toggle right) — identical to the Files subblock header. This removes the extra row and aligns the spacing.Type of Change
Testing
tscclean, biome clean; existing input-format tests pass. Matches the existing canonical toggle styling exactly (12px button,ArrowLeftRight12px,--text-secondary/--text-primary, top tooltip).Checklist