fix(mobile): keep lesson hubbar on one line on small screens - #10
Merged
Conversation
On narrow phones the sticky lesson #hubbar had no mobile rule, so its three
flex items (back-link, Prev/Next pager, theme toggle + track name) shrank and
wrapped mid-item ('Next' dropped below 'Prev', the track name wrapped) — the
cramped header reported on mobile.
At <=540px: nowrap the pager, tighten gaps, and hide the redundant track-name
label (the lesson title right below already names the topic). The back-link,
Prev/Next, and theme toggle stay on one clean line. Shared CSS, so it fixes
every lesson across all 9 tracks; hubbar markup is identical everywhere.
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.
On narrow phones the sticky lesson #hubbar had no mobile rule, so its three flex items (back-link, Prev/Next pager, theme toggle + track name) shrank and wrapped mid-item ('Next' dropped below 'Prev', the track name wrapped) — the cramped header reported on mobile.
At <=540px: nowrap the pager, tighten gaps, and hide the redundant track-name label (the lesson title right below already names the topic). The back-link, Prev/Next, and theme toggle stay on one clean line. Shared CSS, so it fixes every lesson across all 9 tracks; hubbar markup is identical everywhere.
What & why
Type of change
Scope
Checklist
node scripts/check-broken-links.jspasses (no broken internal links)node scripts/validate-content.jspasses (SEO tags, interviewdata-levels, JSON-LD, sitemap in sync)docs/sitemap.xml<title>(· StackDepth), meta description, canonical, and Open Graph tagsFor content changes
data-levelvalues (core/senior/staff/design)Notes for the reviewer