DEV: Update toc-timeline.gjs (#84)

Add class to body when d-toc is installed, even when it isnt rendered.
This commit is contained in:
Jordan Vidrine 2024-04-23 11:54:56 -05:00 committed by GitHub
parent 17aa48f5c6
commit 016cfcfd7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ export default class TocTimeline extends Component {
{{didUpdate this.handleTimelineUpdate @renderTimeline}}
class="d-toc-main"
>
{{bodyClass "d-toc-installed"}}
{{#if this.shouldRenderToc}}
{{#unless this.isTopicProgress}}
{{bodyClass "d-toc-active"}}