Skip to content

Stack footer vertically at narrow widths#673

Closed
LindsayAuch wants to merge 1 commit into
mainfrom
LindsayAuch/responsive-footer
Closed

Stack footer vertically at narrow widths#673
LindsayAuch wants to merge 1 commit into
mainfrom
LindsayAuch/responsive-footer

Conversation

@LindsayAuch
Copy link
Copy Markdown
Contributor

Summary

The default footer is a flex row of links + Give feedback button + social icons that wraps awkwardly between ~768px and ~1280px — especially on docs pages where the 307px sidebar eats horizontal space. `Contact us` and `© Moderne, 2026` each break onto two lines.

Change

Single file: `src/theme/Footer/styles.module.css`

  • At `max-width: 1280px` the container stacks vertically (links → Give feedback → social icons), left-aligned
  • Resets the desktop `translateX(-120px)` shift and applies `translateX(-100px)` so the stacked content sits closer to the left edge of the article column

Test plan

  • Run `yarn start` and resize the browser between 1280px and 768px on a docs page — footer should stack instead of wrapping individual links
  • Confirm above 1280px the inline row layout is unchanged
  • Confirm below 768px the existing mobile rule still works

🤖 Generated with Claude Code

The default footer is a flex row of links + Give feedback button +
social icons that wraps awkwardly between ~768px and ~1280px,
especially on docs pages where the 307px sidebar eats horizontal
space. "Contact us" and "© Moderne, 2026" each break onto two lines.

At <=1280px stack the container vertically (links → Give feedback
→ social), left-aligned. Reset the desktop translateX(-120px) shift
and apply translateX(-100px) so the stacked content sits closer to
the left edge of the article column.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@LindsayAuch LindsayAuch marked this pull request as ready for review May 11, 2026 16:01
@LindsayAuch LindsayAuch requested a review from zieka May 11, 2026 16:02
@LindsayAuch
Copy link
Copy Markdown
Contributor Author

Superseded by #681 — more thorough tiered responsive logic + related narrow-width navbar fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant