fix(layout): improve wiki article responsive layout on narrow viewports - #1961
Closed
carlh7777 wants to merge 1 commit into
Closed
fix(layout): improve wiki article responsive layout on narrow viewports#1961carlh7777 wants to merge 1 commit into
carlh7777 wants to merge 1 commit into
Conversation
Stack infoboxes, scroll the tab bar, and expand the two-row mobile header so search and article content no longer overflow on phones and tablets. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Verdict: Close PR #1961: fix(layout): improve wiki article responsive layout on narrow viewports This PR changes hover-driven on-screen behavior. Code analysis confirms the visible effect only appears during the interaction, so static before/after screenshots cannot demonstrate it (an identical-looking pair is not valid evidence). A short screen recording or GIF is required. Visual PRs need evidence in the PR description so the maintainer can review the change quickly and reliably. A deploy preview link alone is not enough. Required evidence for resubmission:
Changed files:
CI: Checks still pending: build Please open a new focused PR with the required evidence attached. Automated review by Taopedia Site Maintainer. |
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.
Summary
Fix responsive layout issues on wiki article pages (header/search, tab bar, infobox, and article width) so narrow viewports no longer clip the search bar or force horizontal page scroll.
Changes in
src/styles/wikipedia.css:.mw-bodyfluid by default withmin(960px, calc(100vw - 48px))Regression checks updated in
scripts/check-mobile-header-search.js.Why This Should Ship
Readers on phones and narrow tablets currently hit clipped search, cramped tabs, and side-by-side infobox layout that squeezes article text — especially on subnet pages like Subnet 5: Hone. These fixes keep Taopedia readable and navigable on mobile without changing article content or routes.
Review Notes
WikiLayout.astro/[...slug].astro(e.g./wiki/subnet_5)npm run test:mobile-header-search| Before | After |
|
|
|
Before: search clipped, tabs cramped, infobox competing with body text. After: full-width search row, scrollable tabs, stacked infobox.
Target Branch
testmainonly because it promotestestto productionSecurity Checklist