Repository navigation
Fix mobile layout for callouts, inline code, and the docs side nav - #866
Conversation
- BaseBox callouts: let the link button wrap below the text instead of forcing a single line, which widened pages to 400-520px on phones and squeezed the callout text into a narrow column. - Docs layout: allow the content column to shrink so wide content can no longer stretch the page past the viewport. - Inline code: wrap long values (for example Lambda layer ARNs) instead of overflowing the screen. - Docs side nav: fill the full viewport height on mobile. It was sized to 100vh - 210px, so it stopped partway down the screen. - Remove a link to the deleted EKS add-on v0.88 migration guide from the v0.88.0 release post.
|
Looks good to me. I built it locally and checked pages at 390 to 1440px. Nothing overflows, and the side nav fills the screen and scrolls to the end. Two small things:
Also, small thing on the description: desktop isn't quite unchanged. Two callouts with long buttons now wrap at 1440px (ecs-prometheus and ecs-metrics-receiver). It looks better though, one box went from 527px to 142px tall. |
Fixes mobile layout problems that showed up after #862 went live.
Changes
BaseBox): the link button was forced onto one line. On a 390px phone screen that widened pages to 400–520px (sideways scrolling), squeezed the callout text into a two-word column, and pushed the home page menu button off screen. The button now wraps below the text on narrow screens.100vh - 210px, so it ended partway down the screen. It now fills the full viewport (100dvh, falling back to100vh) and scrolls through to the last item.Testing
gatsby build) succeeds.