Repository navigation
fix(screening): at large text on a phone, the form's Start and Save bar sits at the end of the form instead of over it - #1681
Merged
Conversation
…ar sits at the end of the form instead of over it At 200% text on a 390x844 phone the new-screening form's bottom bar was 397px tall under 361px of navigation and page header, leaving 86px of the form; at 360x740 it overlapped the header and none was left, so a source's Add couldn't be pressed. ActionBar now takes the rule StickyPageHeader has had since #1505: on a phone, a bar taller than half the screen under the navigation stops sticking and sits at the end of its card. Screen's vote bar, fixed to the window below lg, keeps its place.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Found by the daily QA of 1 December (both passes hit it); the user picked this fix.
At 200% text on a phone, the new-screening form's bottom bar (papers to screen, cost, Start) covered most of the screen under the navigation and the page's sticky header. A source's Add in Add papers from couldn't be pressed.
ActionBar(components/screening/pieces.tsx) now follows the ruleStickyPageHeaderhas had since #1505: on a phone (undersm), a bar taller than half the screen under the navigation stops sticking and sits at the end of its card. It measures on its own resize and the window's; the navigation's height (set in rem) is read in pixels from the bar'sscroll-margin-top. The form's Start bar and Settings' Save bar take it. Screen's vote bar, fixed to the window belowlg, passesstaysand keeps its place.Measured on
/screening/newas the Verify Agent, dev against a production build of this branch:At 390 and 200%, Start screening is pressable once scrolled to the end of the form.
Checks:
tsc --noEmit,check:ui-rules,npm run verify -- shift /screening/newpasses in Chromium and Firefox (the avatar it lists happens on dev too). No test: a layout rule measured in the browser above.