+
Skip to content

Conversation

DmitrySharabin
Copy link
Member

@DmitrySharabin DmitrySharabin commented Oct 9, 2025

Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for colorjs ready!

Name Link
🔨 Latest commit 158ba8e
🔍 Latest deploy log https://app.netlify.com/projects/colorjs/deploys/68e7dc9dc952f90008733ad0
😎 Deploy Preview https://deploy-preview-681--colorjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

& > ul {
position: sticky;
top: var(--_gap);
block-size: calc(100vh - var(--_gap) - 1.2lh);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does the 1.2lh come from?

Copy link
Member Author

@DmitrySharabin DmitrySharabin Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From experiments. To leave a gap at the end of the page. However, now, I think something like block-size: calc(100vh - 2 * var(--_gap)); would be a more appropriate solution. What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works, yes, that seems better.

@DmitrySharabin DmitrySharabin merged commit 0123a57 into main Oct 9, 2025
4 of 5 checks passed
@DmitrySharabin DmitrySharabin deleted the scrollable-toc branch October 9, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar UI Improvement - Scrollable

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载