Comments (4)
I just used --toc-overflow: auto;
to hide it on mine, and make it correctly only show up if there is a need to scroll.
from svelte-toc.
Scrollbars are vendor and/or OS dependent. Are you on Windows? On mac, they are hidden by default. Feel free to share a screenshot just to confirm we're talking about the same thing. Maybe this SO answer helps?
from svelte-toc.
I am on Windows. I wasn't aware this is an OS thing. I don't see them on all types of pages though, but for svelte-toc
I always see them. I have this issue on Firefox, Chrome, and Edge.
See the screenshot below, I've highlighted in yellow what I mean. I tried the solution from GitHub and I tried the overflow directives from Tailwind, but I can't get rid of it.
this prop provided by you has worked instead: --toc-overflow="auto"
. So, for anyone else: <Toc --toc-overflow="auto"/>
works! Thanks a lot!
from svelte-toc.
Many other sites probably use custom CSS to hide scroll bars in all browsers which is why you don't see them. Something like (from here)
<style>
.container {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
.container::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
</style>
I'm not opposed to that in svelte-toc
. Happy to take a PR that adds these rules via overridable CSS custom variables.
from svelte-toc.
Related Issues (20)
- Quick questions HOT 1
- Getting error about resolving `$app/stores` HOT 7
- Strange behaviour HOT 16
- Prevents scroll when using smart zoom on macOS HOT 1
- [Question] Split into sections HOT 4
- Component persisting on page change when not required HOT 2
- How do I customize the font-size of each item of the ToC? HOT 4
- New prop for toc nav overflow-y HOT 1
- Component insists on starting at full height above the text HOT 4
- Svelte-toc interferes with other anchor links in the document HOT 9
- [Question]TypeScript support HOT 4
- Disable blur initial transition animation HOT 1
- SvelteKit page navigation breaks when svelte-toc is shown HOT 1
- Add option to only show sublevel headings below currently active top-level heading
- Issues with highlighting the correct content HOT 1
- `keepActiveTocItemInView` should be false by default HOT 3
- Hide when intersecting with user-specified DOM nodes
- Add slots for custom ToC items HOT 1
- Add tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-toc.