Repository navigation
fix(ui): use the MD3 window classes on the content pages - #1274
Merged
Merged
Conversation
The pages still switched layout at the default Tailwind widths (640, 768, 1024 and 1280 px) while the rest of the dashboard follows the MD3 window classes (600, 840, 1240 px). Between those widths they showed a layout that no other page uses. sm: and md: become medium:, lg: becomes expanded:, xl: becomes large:, max-sm: becomes max-medium:. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
The design maps md: (768) to expanded: (840) and lg: and the 1024 pixel arbitrary width to large: (1240). The previous change used medium: for md: and expanded: for lg:. Correct the classes, the class level tests and the style-gate baseline entries. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
6 of 7 tasks
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.
Description
Task 7.5 of migrate-content-to-components. The repository browser, search, overview, plugin blocks, status dashboard and the header hero still changed their layout at the default Tailwind widths, so on a tablet or a narrow desktop window they switched at different widths than every other page. They now switch at the MD3 window classes the design names: medium from 600 px, expanded from 840 px, large from 1240 px.
Layout changes by width (window width in px), following the mapping of the design (sm: to medium:, md: to expanded:, lg: and xl: to large:, max-sm: to max-medium:):
sm:becamemedium:); the narrow header hero padding now ends at 600 instead of 640 (max-sm:becamemax-medium:).md:becameexpanded:).lg:andmin-[1024px]:becamelarge:).xl:becamelarge:).The side-by-side grids with an arbitrary column value move their entry in the style-gate baseline (now
large:), no new exception is added.Type of change
fix- bug fixHow was this tested?
npm run eslint(whole frontend),npm run typecheck, vitest on the touched folders plussrc/anchorsandsrc/style-gate: all green.Checklist
CLAUDE.md./gradlew buildpasses locally (frontend-only change; frontend checks listed above)