Docs sidebar layout issue when announcementBar is partially visible
See original GitHub issueHave you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I’m using the latest version of Docusaurus.
- I have tried the
npm run clear
oryarn clear
command. - I have tried
rm -rf node_modules yarn.lock package-lock.json
and re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
When the announcementBar is partially visible, the docs sidebar is incorrectly sized vertically. This is particularly noticeable when the sidebar collapse button is visible. Note that the behaviour does not occur when the announcementBar is fully visible or fully invisible.
Reproducible demo
No response
Steps to reproduce
- Navigate to https://docusaurus.io/docs
- Ensure announcementBar is visible (clear cache if required)
- Resize browser window so scrollbar appears on sidebar
- Scroll browser window so announcementBar is only partially visible
Expected behavior
Scrollbar on sidebar does not overlap collapse button
Actual behavior
Scrollbar on sidebar overlaps collapse button
Your environment
- Docusaurus v2.2.0
- Chrome v107 or Safari v15.6.1
Self-service
- I’d be willing to fix this bug myself.
Issue Analytics
- State:
- Created 10 months ago
- Comments:6
Top Results From Across the Web
Dialogs and Sidebars in Google Workspace Documents
A sidebar can display an HTML service user interface inside a Google Docs, Forms, Slides, or Sheets editor. Sidebars do not suspend the...
Read more >Use the Google bar - Google Account Help
You can use the Google bar to get to the Google apps you use most, receive app notifications, and manage your Google account....
Read more >Organize your sidebar with custom sections - Slack
Your custom sections are only visible to you and won't affect what your teammates see, so set them up however you'd like. Watch...
Read more >Navigate with the sidebar – Notion Help Center
Notion's left-hand sidebar makes it easy to structure all the content in your workspace. Here's everything you need to know on how to...
Read more >The Announcement Bar - Pixpa Help
The Announcement Bar is a full-width bar that sits right on top of your website (above the header) and hence becomes the first...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like
docusaurus-announcement-bar-height
is added to the bottom margin of the scrollable area of the sidebar - but only when the announcementBar is fully visible.@guardsofmagog I would like to work on this issue if it is available.