Repository navigation
Fix: mobile portrait layout for the demo, widget strip and tables - #15
Merged
Merged
Conversation
Render the landing page dashboard demo as the app's phone home screen below 768px: a four-column grid, small widgets over a 2x2 block, sizes derived from the 393px reference width, and a page script that scales the widget iframes from the card the grid produces. Give the widget marquee a static fallback under prefers-reduced-motion: drop the duplicated halves, label every service, and make the strip a keyboard reachable horizontal scroller. Wrap markdown tables in a scroll container with a rehype plugin, hold three-column tables at 36rem below 768px, and let code in value columns break so a long path no longer sets the column width.
Deploying stackyard-docs with
|
| Latest commit: |
a9ae4cc
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7eadd5e7.stackyard-docs.pages.dev |
| Branch Preview URL: | https://fix-mobile-portrait-layout.stackyard-docs.pages.dev |
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.
Summary
MOBILE_QUERY: a four-column grid, small widgets over a 2x2 block, and icon, label and badge sizes derived from the app's 393px reference width..mdup, and underprefers-reduced-motionhide the duplicates, stop the animation, drop the edge mask, show every service name inline, and make the strip a keyboard reachable horizontal scroller.rehype-table-scrollplugin that wraps every markdown table in.sy-tscroll, plus a head script that makes only the overflowing wrappers focusable and labelled.codein non-first columns break, so the last column no longer renders outside the row box.Testing
All green:
npm run buildandnpm run checkboth pass. Verified in Chrome at 320, 360, 390, 430, 601, 768, 900 and 1280px, in both colour schemes and both docs themes, with and without reduced motion: the demo grid is four columns with no clipped items, the reduced-motion strip reaches all 25 services, and the three-column tables scroll instead of dropping their last column.Checklist
npm run buildandnpm run checkboth pass.