Repository navigation
fix: keep visual review's Looks right checkbox inside the stacked desk - #5501
Merged
Merged
Conversation
#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
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.
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 nightlytest_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-padso 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-inspectionat 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 windowleaf-dev stillsreports no change.Verification:
test_page_fixture_renders[visual-review-gallery](--run-nightly) fails on mainf8808301fwith 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