-
Notifications
You must be signed in to change notification settings - Fork 394
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
nav: unnecessary gaps in sidebar #724
Comments
@algomaster99 I can's reproduce this. What browser do you use? Is it production? |
I also don't see this. Try ford reloading the site on your browser Aman. Shall we close as |
@shcheklein @jorgeorpinel I sometimes see this and sometimes not. I can't figure out what is happening. |
@algomaster99 could you check the console? could you check the inspector in this place? |
The harcoded |
I get 94px correctly. But I was able to reproduce from https://www.webpagetest.org/result/191022_SR_d9e1db4a5e961674a3f0fd9d512cd22a/ so it's definitely not just Aman's browser. |
@algomaster99 @algomaster99 does it happen with other sections? |
@shcheklein No, I don't think so. |
I think I found out why this bug happens:
There is a few possible solutions for this problem:
I'd prefer first solution, but like to discuss it with everyone before implementing. |
Thanks, @iAdramelk - good investigation! Let me clarify a few things re the proposed solutions:
No multiline items anymore, right? How would we render those that do not fit? Can we simplify the code besides
Not sure how would it solve it. Could you elaborate?
All of them sound hacky and/or suboptimal to me. Agreed on the first one if understand it right ... but we should properly cut the text with |
So this has already been implemented guys? I see long items are truncated (without "..." or hover text) into a single line now e.g.:
I also like this one. I don't see it being hacky. Could display a "loading navigation" thingy meanwhile in case it lags noticeably but do we really expect this lag to be noticeable? Maybe just the very first time a person loads it after deploying updates to prod. |
No, I didn't have time to implement in so far. Text still should still wrap lines right now. If it didn't it is possible that it happens because of the same bug with the wrong height. |
Please double check the error dvc.org/src/Documentation/SidebarMenu/SidebarMenu.js Lines 26 to 29 in 9ee6eac
is no longer thrown in the new implementation. |
I think there is unnecessary space between 'Shared Development Server' and 'User Guide'.
UPDATE: Note that a PR for this could also solve this related issue: #856
The text was updated successfully, but these errors were encountered: