-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Navbar Word Wrap on Small Screens #7635
Comments
I thought of an idea: When Navbar items Excess, create an arrow slider automatically. By the time this issue is fixed, I'll use the workaround of minifying navbar items. |
Hmmmm, no? Conceptually it seems perfectly reasonable to change the display according to the available space. How can you expect us to "look the same" here? Can you fix it manually and post a screenshot of your visual expectation? Now I understand that your navbar looks ugly on small, non-mobile widths. And most likely it is because we actually don't change the design according to the available space (ie for example reducing font size or paddings for small widths or whatever). Ultimately, if you use 100th navbar items, we can't do much for you, and you'll have to consider using a shorter navbar or hiding yourself some items for small devices.
We have to support progressive enhancement and avoid hydration FOUC. Detecting "excess" probably requires JS, that might not be easy. Also not sur what you mean by "arrow slider", do you have any example site implementing a similar UX in a navbar? |
Just an |
I think so similar to this |
I tested |
How can I set CSS classes for the navbar? If there is a class for the navbar, I'll put an |
I need a scrollbar automatically below the navbar if on a laptop or a smaller screen. Can anyone tell me how to do that? |
I don't understand the question. It's impossible to help you: please invest some time to help us help you. Which DOM element can't you target with custom CSS and you would like to? The navbar has a class, you can easily see it by inspecting the DOM, and it can be targetted with Now adding |
Can you tell me how to add scrollbar below the navbar and in a way that it looks good? |
No: this seems more complex than just adding a single CSS rule and requires investigation. I can't dedicate time to this right now. Please try to investigate what is the CSS required to make it look good, using DevTools or custom stylesheets locally. |
I am now trying to mess up with the React Native website navbar. When I tested it on smaller screens, it automatically shows an option to scroll using the mouse. Will find out how it does that. Please tell me if anyone gets it. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@RudraSen2 please don't use issues as a support forum. I deleted your unrelated comment. Thanks for referencing the ReactJS website UX: this would definitively be useful to implement it on Docusaurus. However, we don't know yet how to implement it You have 3 choices here:
|
Got better with this: * {
white-space: nowrap;
} |
Navbar is almost fixed, but the other stuff on my website is not looking good. Can you tell me the CSS class for the navbar, like for the table, we use |
Whenever you look for a class, open the dev tools and inspect the DOM to find it |
I am a new bie to open source. What is the last task in this issue! I am up to work on it |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Names on the Navbar Wrap when using website on smaller screens (i.e. 13" Laptop, Tablet, iPad)
Screenshot below:
Reproducible demo
https://github.com/Comp-Labs/comp-labs-website
Steps to reproduce
Expected behavior
The Navbar should look the same whether it is Small Laptop or a Big 24" Desktop.
Actual behavior
Navbar Items Wrap up on small screens as in the screenshot below.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: