Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 96c3a9d

Browse files
committed
Better comments
1 parent 9b1015b commit 96c3a9d

File tree

1 file changed

+10
-8
lines changed
  • assets/stylesheets/modules/ai-bot-conversations

1 file changed

+10
-8
lines changed

assets/stylesheets/modules/ai-bot-conversations/common.scss

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,23 @@ body.has-ai-conversations-sidebar {
2323
}
2424
}
2525

26-
// we always have the "today" section rendered at the top of the sidebar.
27-
// Hide the "today" header when the section is empty
26+
// When the sidebar is empty, we want to hide the "Today" header
27+
// and only show the empty state component
28+
&.has-empty-ai-conversations-sidebar
29+
.sidebar-section[data-section-name="today"]
30+
.sidebar-section-header-wrapper {
31+
display: none;
32+
}
33+
34+
// When the sidebar isn't empty, BUT "today" is empty, hide
35+
// the entire section
2836
&:not(.has-empty-ai-conversations-sidebar)
2937
.sidebar-section[data-section-name="today"]:has(
3038
.ai-bot-sidebar-empty-state
3139
) {
3240
display: none;
3341
}
3442

35-
&.has-empty-ai-conversations-sidebar
36-
.sidebar-section[data-section-name="today"]
37-
.sidebar-section-header-wrapper {
38-
display: none;
39-
}
40-
4143
.sidebar-toggle-all-sections {
4244
display: none;
4345
}

0 commit comments

Comments
 (0)