Skip to content

fix(gui): label every Field with FieldLabel, as Penpot's Field/Label - #423

Merged
bRRRITSCOLD merged 1 commit into
mainfrom
fix/405-edit-workspace-offset
Nov 24, 2026
Merged

bRRRITSCOLD merged 1 commit into
mainfrom
fix/405-edit-workspace-offset

Conversation

@bRRRITSCOLD

Copy link
Copy Markdown
Owner

Closes #405
Closes #288

Cause

Every Field on agentdeck's Penpot boards labels with the library's Field/Label part. That part is core-react's FieldLabel, which is leading-snug (19.25px; Penpot rounds it to 20). The app drew a plain Label instead, which is leading-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 plain Labels stay where Penpot has a plain Label (Repositories, Show finished).

Tests

These are written first and failed on main:

  • edit_workspace::tests::layout pins 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_labels pins 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 ci passes locally.

Captures

These are in ~/Pictures/agentdeck/2026-11-24-edit-workspace-offset/. The app shots are at 1.5×; the *-compare.png files 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/widgets row keeps the space of its hidden lock because its flex layout went stale. That is tracked in #422.

🤖 Generated with Claude Code

…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>
@bRRRITSCOLD
bRRRITSCOLD merged commit 2629f7d into main Nov 24, 2026
6 checks passed
@bRRRITSCOLD
bRRRITSCOLD deleted the fix/405-edit-workspace-offset branch November 24, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant