main
← fix-missing-discotoc-btn
opened 08:24PM - 23 Sep 25 UTC
The topic-navigation positioning is tied to the`.with-topic-progress ` class, w…hich only gets added when there is a topic timeline, which means that the Disco Toc button isn't accessible on mobile, when there is only 1 post.
See https://meta.discourse.org/t/discotoc-style-is-broken-if-there-is-no-reply-on-mobile/353845
This commit removes the requirement of that class, and instead looks for the presence of the `d-toc-mini` class, which means a ToC is available, to apply the sticky positioning to the element.