Giter Club home page Giter Club logo

Comments (6)

ghilainm avatar ghilainm commented on September 26, 2024 2

I have the same issue here. Heading list truncated when they are a lot of titles in a section (more than 30).

I have applied the workaround suggested and it worked.

from tocbot.

tscanlin avatar tscanlin commented on September 26, 2024 1

I've updated the readme to call this out here:
https://github.com/tscanlin/tocbot?tab=readme-ov-file#troubleshooting

Thanks for the comment!

from tocbot.

tscanlin avatar tscanlin commented on September 26, 2024

Hey, my only issue is that changing that value to higher numbers can affect the animation, at least the last time I checked. An option could be added to be able to specifically override this via an inline style made via JS, but for now I'd say just overriding the CSS for this use case may make the most sense.

from tocbot.

stenzengel avatar stenzengel commented on September 26, 2024

Hi Tim,

The animation should be fine because I used a different Bézier curve for the transition for opening and closing a heading. See the comment in the code above.

In my opinion, an option would complicate the use of tocbot. More importantly, in a document with long headings where I need to set this option to a high value, this would result in a barely visible transition for short headings, which of course could also exist in this document.

Overriding is of course an option. Feel free to close this issue.

Winfried

from tocbot.

tscanlin avatar tscanlin commented on September 26, 2024

Hey, sorry I missed that part about the bezier curve changes. That's a great idea! So does it not affect the transitions for shorter / smaller toc sections? Let me test this out locally too. Thank you!!

from tocbot.

tscanlin avatar tscanlin commented on September 26, 2024

When I tried this out it seemed to cause a tiny bit of a delay with the animations, but wasn't too noticeable. I'm glad this solved your use case. I will be sure to refer other people here if they have the same issue and will consider adding a callout in the readme if more people run into this. Thank you!

from tocbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.