Repository navigation
fix(gui): label every Field with FieldLabel, as Penpot's Field/Label - #423
Merged
Merged
Conversation
…405, #288) Every Field in Penpot labels with the library's `Field/Label` part, core-react's FieldLabel (`leading-snug`, 19.25px), but the app drew a plain Label (`leading-none`, 14px). Each field came out about 5px short, which put Edit workspace's lines 3-4px above Penpot's once the dialog centred, and made the Quit dialog's options and buttons sit high. All Field labels (Edit and New workspace, New agent, Delete workspace, Paste token, Settings, the GitHub client ID and Quit's options) now use FieldLabel. Layout tests pin the Edit workspace form's lines and Quit's spacing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #405
Closes #288
Cause
Every Field on agentdeck's Penpot boards labels with the library's
Field/Labelpart. That part is core-react'sFieldLabel, which isleading-snug(19.25px; Penpot rounds it to 20). The app drew a plainLabelinstead, which isleading-none(14px), so every field came out about 5px short:The dialog header gap and core-gpui's Field, Label and FieldLabel all match core-react, so nothing changes in rust-packages. Core-react is the reference, and the app was the side that was wrong.
Fix
Every Field label in the GUI now uses
FieldLabel: Edit and New workspace's Name, New agent, Delete workspace's confirmation, Paste token, Settings' four fields, the GitHub client ID and Quit's two options. The plainLabels stay where Penpot has a plainLabel(Repositories, Show finished).Tests
These are written first and failed on
main:edit_workspace::tests::layoutpins the Name input 31.25px below the Name label's top (it was 26) and the linked rows 105.25px below it (it was 100).shell::tests::quitting::should_space_the_options_and_buttons_by_their_field_labelspins Stop the agents 31.25px below Don't ask again (it was 28) and the buttons 74.5px below it (it was 68).cargo xtask cipasses locally.Captures
These are in
~/Pictures/agentdeck/2026-11-24-edit-workspace-offset/. The app shots are at 1.5×; the*-compare.pngfiles show Penpot on the left and the app at 1× on the right, with a 16px grid.01-edit-workspace-{penpot,app,compare}.png: from the dialog's top down to "Link a repository…", every line sits within 1px of Penpot's. The linked rows' text sits 1.7px higher. Penpot's 20px label accounts for 0.75px of that; the rest is glyph placement inside the row. Before this fix the gap was 3–4px.02-quit-agents-running-{penpot,app,compare}.png: every line is within 1.5px, which is Penpot drawing each of the two labels 0.75px taller than code. Before this fix the dialog was about 7px short.Out of scope: in Penpot, the public
acme/widgetsrow keeps the space of its hidden lock because its flex layout went stale. That is tracked in #422.🤖 Generated with Claude Code