Skip to content

fix: adjust CSS for mobile#481

Merged
serhalp merged 2 commits intonpmx-dev:mainfrom
wojtekmaj:mobile-css
Jan 31, 2026
Merged

fix: adjust CSS for mobile#481
serhalp merged 2 commits intonpmx-dev:mainfrom
wojtekmaj:mobile-css

Conversation

@wojtekmaj
Copy link
Copy Markdown
Contributor

With new translations coming in, some UI quirks become visible. This fixes several issues with UI not reflowing correctly when longer-than-english labels were used.

Additionally, links in header gathered bigger hitbox to match account-menu and to make aligning them even possible.

Before (BAD):

localhost_3000_(Samsung Galaxy S8+)

After (AMAZING):

localhost_3000_(Samsung Galaxy S8+) (1)

Before (BAD):

localhost_3000_(Samsung Galaxy S8+) (2)

☝️ This is worse than it seems from the white-on-white screenshot but the links are overflowing on the right causing the page to gain horizontal scroll on mobile

After (AMAZING):

localhost_3000_search_q=react-pdf(Samsung Galaxy S8+)

Copilot AI review requested due to automatic review settings January 31, 2026 11:54
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 31, 2026 1:27pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Jan 31, 2026 1:27pm
npmx-lunaria Ignored Ignored Jan 31, 2026 1:27pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts mobile layout styles to better accommodate longer translated labels and to prevent header links from overflowing / causing horizontal scroll.

Changes:

  • Add a minimum width constraint to the header search input to avoid overly narrow rendering on small screens.
  • Make header right-side controls wrap and increase link hitboxes via padding.
  • Allow footer links to wrap on smaller viewports.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
app/components/SearchBox.vue Adds a minimum width utility to the search input for better mobile reflow.
app/components/AppHeader.vue Adjusts header sizing/wrapping and increases header link hitboxes for mobile.
app/components/AppFooter.vue Enables wrapping for footer links to prevent overflow with longer labels.

Comment thread app/components/SearchBox.vue
Comment thread app/components/AppHeader.vue Outdated
Comment thread app/components/AppHeader.vue
@danielroe
Copy link
Copy Markdown
Member

great!

I think we should also have less vertical height when the links wrap in the footer

With new translations coming in, some UI quirks become visible. This fixes several issues with UI not reflowing correctly when longer-than-english labels were used.
Copy link
Copy Markdown
Member

@serhalp serhalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thank you!

@serhalp serhalp added this pull request to the merge queue Jan 31, 2026
Merged via the queue into npmx-dev:main with commit 96fd9c8 Jan 31, 2026
13 checks passed
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.

4 participants