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

left / right search bar position #263

Closed
noraj opened this issue Sep 3, 2022 · 1 comment · Fixed by #264 or #265
Closed

left / right search bar position #263

noraj opened this issue Sep 3, 2022 · 1 comment · Fixed by #264 or #265

Comments

@noraj
Copy link

noraj commented Sep 3, 2022

When the search bar is on the left of the navbar, the results are cropped:

        {
          type: 'search',
          position: 'left',
        },

image

while it's ok when the search bar is on the right of the navbar:

        {
          type: 'search',
          position: 'right',
        },

image

So I guess the style should depend on the side where the search bar is. If the side can't be retrieved directly from docusaurus.config.js then having a position option in the plugin config to alight with the search bar side would be required.

weareoutman added a commit that referenced this issue Sep 5, 2022
will autodetect based on config by default

closes #263
weareoutman added a commit that referenced this issue Sep 5, 2022
will autodetect based on config by default

closes #263
@weareoutman
Copy link
Member

Supported in v0.32.0, will autodetect the search bar position, but also allow users to configure manually by searchBarPosition: "left".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants