question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docs sidebar layout issue when announcementBar is partially visible

See original GitHub issue

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I’m using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn 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

sidebar issue

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

  1. Navigate to https://docusaurus.io/docs
  2. Ensure announcementBar is visible (clear cache if required)
  3. Resize browser window so scrollbar appears on sidebar
  4. 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:open
  • Created 10 months ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
guardsofmagogcommented, Nov 25, 2022

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.

0reactions
msaini0rcommented, Nov 29, 2022

@guardsofmagog I would like to work on this issue if it is available.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found