Skip to content

Regression: misaligned mobile navigation menu in default theme #5039

@yescallop

Description

@yescallop

Describe the bug

Upon upgrading from version 2.0.0-alpha.13 to 2.0.0-alpha.14, the mobile navigation menu in the default theme becomes misaligned, as shown in the following screenshot:

Image

Reproduction

Open https://vitepress.dev/ in Chrome Android (version 142.0.7444.171) on a phone or Chrome Windows (version 142.0.7444.176) with simulated phone view and click the top-right navigation button. The navigation menu appears misaligned.

Expected behavior

The navigation menu appears correctly as it did in version 2.0.0-alpha.13.

System Info

System:
    OS: Linux 6.6 Arch Linux
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz
    Memory: 6.12 GB / 7.65 GB
    Container: Yes
    Shell: 5.3.3 - /usr/bin/bash
  Binaries:
    Node: 25.2.1 - /usr/sbin/node
    npm: 11.6.3 - /usr/sbin/npm
  npmPackages:
    vitepress: =2.0.0-alpha.14 => 2.0.0-alpha.14

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions