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

fix(theme): --vp-nav-height should be 0 when navbar is hidden #2575

Merged
merged 4 commits into from Sep 16, 2023

Conversation

buqiyuan
Copy link
Contributor

@buqiyuan buqiyuan commented Jul 3, 2023

before:
image

after:
20230703175053

If this PR is merged, I will add document for it later.

@buqiyuan buqiyuan changed the title fix(theme): --vp-nav-height should be 0 when navbar is hedden fix(theme): --vp-nav-height should be 0 when navbar is hidden Jul 3, 2023
@brc-dd brc-dd force-pushed the main branch 2 times, most recently from 7ad4a4e to f0d3082 Compare August 3, 2023 10:20
@itsWindows11
Copy link

In terms of design I'm not particularly a fan of this change, could add some spacing at the top (like 8 or 12px margin as nav height).

@kiaking
Copy link
Member

kiaking commented Aug 19, 2023

yeah it should have some spacing. Can this be fixed if we use position: sticky for navbar instead of position: fixed? 🤔

@brc-dd brc-dd merged commit fd46dc9 into vuejs:main Sep 16, 2023
7 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants