From 016cfcfd7a420922a5fb70d8db23b334bc0de005 Mon Sep 17 00:00:00 2001 From: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:54:56 -0500 Subject: [PATCH] DEV: Update toc-timeline.gjs (#84) Add class to body when d-toc is installed, even when it isnt rendered. --- javascripts/discourse/components/toc-timeline.gjs | 1 + 1 file changed, 1 insertion(+) diff --git a/javascripts/discourse/components/toc-timeline.gjs b/javascripts/discourse/components/toc-timeline.gjs index 31d2006..8dd36b9 100644 --- a/javascripts/discourse/components/toc-timeline.gjs +++ b/javascripts/discourse/components/toc-timeline.gjs @@ -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"}}