Skip to content

[UX] Show left/right scroll indicators for the navbar on mobile#2406

Merged
chalin merged 4 commits intogoogle:mainfrom
chalin:chalin-mw-nav-scroll-indicators-2025-08-05
Nov 23, 2025
Merged

[UX] Show left/right scroll indicators for the navbar on mobile#2406
chalin merged 4 commits intogoogle:mainfrom
chalin:chalin-mw-nav-scroll-indicators-2025-08-05

Conversation

@chalin
Copy link
Copy Markdown
Collaborator

@chalin chalin commented Nov 23, 2025

Docsy's original design of the navbar on mobile is uncommon: rather than collapse into a hamburger, it stays as a top nav. The main problem, before this PR, is that there is no visual cue when the navbar is overflowing (on either side).

This PR:

Preview an page on mobile, e.g.: https://deploy-preview-2406--docsydocs.netlify.app/docs/

Screenshots

image
image
image

@chalin chalin added mobile UX design/style Front-end site design / styling labels Nov 23, 2025
@chalin chalin merged commit f59cbb8 into google:main Nov 23, 2025
11 checks passed
@chalin chalin deleted the chalin-mw-nav-scroll-indicators-2025-08-05 branch November 23, 2025 23:09
Comment thread assets/js/base.js
Comment on lines +74 to +78
// console.log('Overflow check:', {
// scrollWidth: navElement.scrollWidth,
// clientWidth: navElement.clientWidth,
// isOverflowing: isOverflowing
// });
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't these debug lines be removed?

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

Labels

design/style Front-end site design / styling mobile UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If there are more than 6 menus tabs on the top level menu. I am unable to see remaining menu tabs towards right.

2 participants