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

Change search bar position #96

Open
aandis opened this issue Jan 26, 2022 · 3 comments
Open

Change search bar position #96

aandis opened this issue Jan 26, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@aandis
Copy link

aandis commented Jan 26, 2022

The default search action is essentially a button in the navbar that opens a modal containing the actual search bar component. I want to remove the button and directly place the search bar component in the navbar in the center. Is this possible?

@aandis
Copy link
Author

aandis commented Jan 26, 2022

I want to remove the button and directly place the search bar component in the navbar

Since https://github.com/cmfcmf/docusaurus-search-local/blob/main/packages/docusaurus-search-local/src/client/theme/SearchBar/index.tsx#L241 hardcodes detachedMediaQuery to "" I don't think that is possible. Can we please extract it out as a config?

@dtbj
Copy link

dtbj commented Jan 28, 2022

It's not what everyone wants so please provide an option to shift to popup layout if you are adding this.

@cmfcmf cmfcmf added the enhancement New feature or request label Feb 19, 2022
@qiaofeng1227
Copy link

I also need this function very much. If only it could be embedded anywhere on the page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants