-
Notifications
You must be signed in to change notification settings - Fork 310
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
Increase TOC spacing between entries (again) #1177
Increase TOC spacing between entries (again) #1177
Conversation
Hahaha, again. For me it's a 4. Two 5px rows won't add to a multiple of 4px (not an argument really unless you self-impose this arbitrary "4px multiples" rule to yourself), 6px adds too much white space. |
I just noticed, in favor of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove the rule on line 42, or else the spacing would be smaller on mobile. Or make it even bigger, up to you.
Oops, missed that. I made it 6px for now since 4px definitely seemed too small on mobile and even 5px was a bit small. (And based on the existing comment it should be larger than desktop, unless we just remove the rule)
It uses that, yes, but the padding for that doesn't actually affect the vertical size (except for multi-line items) because the height there is determined by Here's one more comparison of the options: I would personally go for either |
We could also use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to give the OK to 5px… but now that I see this after few days, 6px also doesn't look bad. Either one is OK for me. 😅
#1175 made the sidebar table of contents less dense, but it still looks too dense. It's hard to distinguish between what is a different entry or just an entry with a name that spans multiple lines, and it just looks a bit out of place with the rest of the layout being more spacious.
Before:
After:
Note: The screenshots above use the text styling from #1176, but these changes are not included in this PR.