vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
11.48k stars 1.86k forks source link

Logo in nav (hidden?) behind sidenav #3797

Closed Mellmountain closed 2 weeks ago

Mellmountain commented 4 weeks ago

Describe the bug

I'm trying to get a logo to show up in the nav-bar. It successfully shows on the 'home' layout but not on the default layout (doc). After some experimenting I think that the logo is behind the sidenav (see attached image).

my config.mts -file

themeConfig: {
    siteTitle: 'My uneccesary long side title',
    logo: {
      dark: '/logo-dark.svg',
      light: '/logo-light.svg',
    }

Reproduction

Not sure how to reproduce. Have not gotten it to work yet :(

Expected behavior

Logo is shown in the doc layout.

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
    Memory: 4.88 GB / 15.78 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 123.0.6312.123
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    vitepress: ^1.1.0 => 1.1.0

Additional context

Screenshot of the result when adding a long title. image

Validations

Mellmountain commented 2 weeks ago

I feel really stupid but I had loaded a custom css-file that manipulated the z-index. Once fixed the logo showed up as expected.