-
-
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
Long labels in the sidebar do not display correctly #10531
Comments
This comment was marked as spam.
This comment was marked as spam.
@PranavKeshav24 you can already start working on it. We only assign an issue after you open a draft PR showing you are capable of solving the problem. |
cc @pwizla I remember seeing Strapi docs also truncating sidebar labels, maybe that could serve as an inspiration for the CSS to use to solve this |
Thank you for the heads-up, @slorber! This comment is timely as I'm completely reworking the style of Strapi docs. 😄 @PranavKeshav24 Here's what did the trick for us, if you simply want to truncate the content: https://github.com/strapi/documentation/blob/main/docusaurus/src/scss/sidebar.scss#L139-L140 (and you might not even need the |
@shipswake could you be more specific on how to reproduce the issue? I was not able to reproduce the bug |
If you have a very long label in the sidebar the label will be hidden behind the page The label should be truncated with an ellipsis and the full label readable in a tooltip when hovering over the label. Here is the discussion: |
Thank you so much for sharing that. 😄 |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Any update on this? |
Any update is visible in this thread. No PR means no progress. |
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
I have sidebar items auto generated with @grapql-markdown
Some of the labels in the sidebar are very long and cannot be fully seen
It would be very helpful for the long labels to be truncated with an ellipse and a tooltip added so the full label can be seen on hover
Reproducible demo
No response
Steps to reproduce
Create a new Docusaurus site
Create content which has very long labels in the sidebar
The labels are hidden behind the page view
Expected behavior
Would like to see the labels truncated with an ellipse and a tooltip displayed on hover of the label
Actual behavior
The long labels in the sidebar are hidden by the page
Your environment
Self-service
The text was updated successfully, but these errors were encountered: