Skip to content

fix(theme): tidy the page bottom on narrow screens - #117

Merged
16bit-ykiko merged 1 commit into
mainfrom
fix/mobile-footer
Sep 26, 2026
Merged

16bit-ykiko merged 1 commit into
mainfrom
fix/mobile-footer

Conversation

@16bit-ykiko

Copy link
Copy Markdown
Member

Two things made the bottom of pages look broken on phones:

  • Copyright strip. The strip at the very bottom of the footer set its text on paper-coloured chips over screentone. Once it wrapped onto two lines on a phone, the dots showed between and around the chips. It is now a plain strip under the existing dashed rule, in both light and dark mode.
  • "Return to top" bar. On narrow screens, once the page scrolls, VitePress pins a bar under the navbar. On pages with no sidebar and no headings (home, blog, 404) that bar holds only "Return to top", and its bottom rule and the footer's top rule framed an empty band. The bar is now hidden on those pages. VitePress marks exactly this case with .VPLocalNav.fixed. Doc pages keep their bar with the sidebar menu and the outline.

Checked in vitepress dev at 390 px on /, /blog and a guide page (the bar is hidden on the first two and still shows Menu / On this page on the guide), and the footer at 1440 px in light and dark.

- The footer's copyright strip set its text on paper-coloured chips over
  screentone. Once the strip wrapped on a phone, the dots ran between
  and around the chips; it is now a plain strip under a dashed rule.
- On pages with no sidebar and no headings (home, blog, 404), VitePress
  pins a bar holding only "Return to top" under the navbar once the page
  scrolls on narrow screens. It is hidden there; doc pages keep their bar
  with the sidebar menu and outline.
@16bit-ykiko
16bit-ykiko merged commit db96e9d into main Sep 26, 2026
1 check passed
@16bit-ykiko
16bit-ykiko deleted the fix/mobile-footer branch September 26, 2026 08:24
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