Skip to content

Commit

Permalink
Website: Wrap navbar when there is not enough space (#6541)
Browse files Browse the repository at this point in the history
## What's the problem this PR addresses?

When there isn't enough horizontal space, the scrollbar appears for the
navbar.

Fixes #6070
Fixes #6537

## How did you fix it?

Wraps the navbar instead if there isn't enough horizontal space. The
[VSCode website](https://code.visualstudio.com/) does that too so it
isn't like out of the way either


https://github.com/user-attachments/assets/a7ed8307-d9df-4539-af21-59856ffe6463


## Checklist

<!--- Don't worry if you miss something, chores are automatically
tested. -->
<!--- This checklist exists to help you remember doing the chores when
you submit a PR. -->
<!--- Put an `x` in all the boxes that apply. -->
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).

<!-- See
https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released
for more details. -->
<!-- Check with `yarn version check` and fix with `yarn version check
-i` -->
- [x] I have set the packages that need to be released for my changes to
be effective.

<!-- The "Testing chores" workflow validates that your PR follows our
guidelines. -->
<!-- If it doesn't pass, click on it to see details as to what your PR
might be missing. -->
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
  • Loading branch information
clemyan authored Oct 15, 2024
1 parent 2243ce9 commit 50d87b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/docusaurus/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ html.blog-wrapper .container {

.navbar {
top: -1px;
height: auto;
}

.navbar__items {
flex: 1 0 min-content;
}
.navbar__items--right {
margin-left: auto;
}

.navbar__brand {
Expand Down

0 comments on commit 50d87b5

Please sign in to comment.