facebook / facebook/docusaurus

Navbar Word Wrap on Small Screens

Ouverte
#7,635 19 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug domain: theme
Langage dominant
TypeScript
Étoiles
66.2k
Forks
10k
Merge moyen
1 j 3 h
PR mergées (30 j)
52

Description

### Have you read the Contributing Guidelines on issues?

- [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues).

### Prerequisites

- [X] I'm using the latest version of Docusaurus.
- [X] I have tried the `npm run clear` or `yarn clear` command.
- [X] I have tried `rm -rf node_modules yarn.lock package-lock.json` and re-installing packages.
- [X] I have tried creating a repro with https://new.docusaurus.io.
- [X] I have read the console error message carefully (if applicable).

### Description

Names on the Navbar Wrap when using website on smaller screens (i.e. 13" Laptop, Tablet, iPad)

Screenshot below:

![image](https://user-images.githubusercontent.com/91307601/174082545-7970fdef-e209-4e58-9d0e-304a1f916053.png)

### Reproducible demo

https://github.com/Comp-Labs/comp-labs-website

### Steps to reproduce

1. Run the website on a smaller screen (13" Laptop, Tablet, iPad).
2. See the Navbar.

### 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.

![image](https://user-images.githubusercontent.com/91307601/174083207-fd50744c-7303-4e67-a916-a0faa7eca9f7.png)

### Your environment

- Public source code: https://github.com/Comp-Labs/comp-labs-website
- Public site URL: https://complabs.in
- Docusaurus version used: 2.0.0-beta.21 (latest)
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome Version 102.0.5005.115 (Official Build) (64-bit) | Node v17.2.0
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 11 Pro Dev Insider Build 25140.2000

### Self-service

- [ ] I'd be willing to fix this bug myself.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.