You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
alpha-54: Site title no longer wraps - search box moves #2699
In alpha-0.49 and previous (I believe but I'm struggling to get these to build now), longer site titles would wrap at the search in the header bar. This was especially important on mobile browsers where the width is obviously limited. As of alpha-54, the title is not wrapping and search box is being pushed out of the header.
Install Docusaurus and set up with a multi-word site title (total length more than 12 characters or so)
Enable the search plug in
Visit site on a mobile browser
Expected behavior
Words should wrap to ensure proper placement of search box
Actual Behavior
Title is shown on one line and search is moved
iOS:
Pixel 4 (on BrowserStack)
Your Environment
Docusaurus version used: alpha-54
Environment name and version: Chrome and Safari on iOS,
Operating system and version (desktop or mobile): iOS on iPhone XS. Using browser stack I see it on other devices, including android, depending on screen size/resolution
There's no good way around this as the site title can be potentially very long. I think as a lasting solution we could make the search as an icon-only on mobile, and focusing on it will expand and fill the whole bar, and the title disappears.
Activity
yangshun commentedon Apr 30, 2020
There's no good way around this as the site title can be potentially very long. I think as a lasting solution we could make the search as an icon-only on mobile, and focusing on it will expand and fill the whole bar, and the title disappears.
TomBrien commentedon Apr 30, 2020
An icon that expands (on top of title) when tapped would be a really nice solution. Or on mobile move the search into the hamburger menu
marcosvega91 commentedon Apr 30, 2020
Hi, the only thing to do is to change the media query of the search-bar class.
Now the icon is shown under 360px. I think that we need to change it