Skip to content

fix: keep visual review's Looks right checkbox inside the stacked desk - #5501

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5465
Nov 5, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5465

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

In the stacked visual-review desk, the "Looks right" label no longer hangs past the edge of lf-visual-review. Between 720 and 920px that edge clipped the 5px of the label where its focus ring is drawn. This fixes the nightly test_page_fixture_renders[visual-review-gallery] failure.

#5230 made the label a .lf-choice, which keeps its focus-ring room as padding, and moved it left by --choice-pad so the checkbox lines up with the caption's edge. In the wide desk that offset falls into the 24px workspace gap beside the case queue. Below the 58rem container query the desk stacks, so the detail sits on the review's own edge. In a full-height workspace the review is a scroller (overflow: auto) and clips anything past that edge. The stacked layout now resets the offset. That keeps #5230's alignment in the wide desk and gives the label its full ring room where it has no gap to use.

What changes on screen: visual-review-inspection at 900×700. The checkbox and its label sit 5px further right, so the checkbox no longer lines up exactly with the caption text. At the state's default 1440×900 window leaf-dev stills reports no change.

Before After
before after

Verification: test_page_fixture_renders[visual-review-gallery] (--run-nightly) fails on main f8808301f with the three reported findings and passes with this change. test_each_control_archetype_holds_its_neighbours_still[visual-review-approval] passes.

Closes #5465 — automated triage

#5230 hung the Looks right choice out by its ring padding so its checkbox
stands on the row's edge. In the wide desk that hang falls into the
workspace's gap beside the queue. Below 58rem the desk stacks and the
detail stands on lf-visual-review's own edge, which is a scroller in a
full-height workspace, so between 720 and 920px it cut the label's left
5px, the room its focus ring is drawn in. The stacked desk now drops the
hang; its checkbox sits 5px right of the caption's edge there, and the
wide desk is unchanged.

Closes #5465
@leaf-agent
leaf-agent merged commit 3096e45 into main Nov 5, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5465 branch November 5, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_page_fixture_renders[visual-review-gallery]: run labels drawn 5px outside lf-visual-review at 720–920px

1 participant