Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logo in nav (hidden?) behind sidenav #3797

Closed
4 tasks done
Mellmountain opened this issue Apr 17, 2024 · 1 comment
Closed
4 tasks done

Logo in nav (hidden?) behind sidenav #3797

Mellmountain opened this issue Apr 17, 2024 · 1 comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@Mellmountain
Copy link

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 Mellmountain added the bug: pending triage Maybe a bug, waiting for confirmation label Apr 17, 2024
@Mellmountain
Copy link
Author

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant