docusaurus-search-local icon indicating copy to clipboard operation
docusaurus-search-local copied to clipboard

Change search bar position

Open aandis opened this issue 3 years ago • 3 comments

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 avatar Jan 26 '22 12:01 aandis

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?

aandis avatar Jan 26 '22 13:01 aandis

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

dtbj avatar Jan 28 '22 09:01 dtbj

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

qiaofeng1227 avatar Mar 07 '22 02:03 qiaofeng1227