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

Commit 724211c

Browse files
committed
DEV: Update css
1 parent 97b74d1 commit 724211c

File tree

2 files changed

+24
-34
lines changed

2 files changed

+24
-34
lines changed

assets/javascripts/initializers/ai-conversations-sidebar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export default {
3939
(BaseCustomSidebarSection, BaseCustomSidebarSectionLink) => {
4040
const AiConversationLink = class extends BaseCustomSidebarSectionLink {
4141
route = "topic.fromParamsNear";
42-
prefixType = "icon";
43-
prefixValue = "robot";
4442

4543
constructor(topic) {
4644
super(...arguments);
@@ -99,7 +97,7 @@ export default {
9997

10098
get text() {
10199
return i18n(
102-
"discourse_ai.ai_bot.conversations.min_input_length_message"
100+
"discourse_ai.ai_bot.conversations.messages_sidebar_title"
103101
);
104102
}
105103

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

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ body.has-ai-conversations-sidebar {
2222
}
2323

2424
// ai related sidebar content
25-
[data-section-name="custom-messages"] {
25+
[data-section-name="ai-conversations-history"] {
2626
.sidebar-section-header-wrapper {
2727
pointer-events: none;
2828
font-size: var(--font-down-1);
@@ -35,38 +35,28 @@ body.has-ai-conversations-sidebar {
3535
letter-spacing: 0.5px;
3636
}
3737
}
38-
}
39-
40-
[data-link-name="View All"] {
41-
align-content: stretch;
42-
43-
.sidebar-section-link-prefix.icon {
44-
display: flex;
45-
font-size: var(--font-up-1);
46-
margin-left: -0.15em;
47-
}
48-
}
4938

50-
.sidebar-section-link-wrapper {
51-
.sidebar-section-link {
52-
height: unset;
53-
padding-block: 0.65em;
54-
font-size: var(--font-down-1);
55-
letter-spacing: 0.35px;
56-
border-radius: 0 var(--border-radius) var(--border-radius) 0;
57-
58-
.sidebar-section-link-content-text {
59-
white-space: normal;
60-
display: -webkit-box;
61-
-webkit-box-orient: vertical;
62-
-webkit-line-clamp: 2;
63-
overflow: hidden;
39+
.sidebar-section-link-wrapper {
40+
.sidebar-section-link {
41+
height: unset;
42+
padding-block: 0.65em;
43+
font-size: var(--font-down-1);
44+
letter-spacing: 0.35px;
45+
border-radius: 0 var(--border-radius) var(--border-radius) 0;
46+
47+
.sidebar-section-link-content-text {
48+
white-space: normal;
49+
display: -webkit-box;
50+
-webkit-box-orient: vertical;
51+
-webkit-line-clamp: 2;
52+
overflow: hidden;
53+
}
6454
}
6555
}
66-
}
6756

68-
.sidebar-section-link-prefix {
69-
align-self: start;
57+
.sidebar-section-link-prefix {
58+
align-self: start;
59+
}
7060
}
7161
}
7262

@@ -205,14 +195,16 @@ body.has-ai-conversations-sidebar {
205195
}
206196

207197
// show toggle when populated
208-
&:has(.sidebar-wrapper [data-section-name="custom-messages"]) {
198+
&:has(.sidebar-wrapper [data-section-name="ai-conversations-history"]) {
209199
.header-sidebar-toggle {
210200
display: block;
211201
}
212202
}
213203

214204
// hide the sidebar on the homepage, if empty
215-
#main-outlet-wrapper:not(:has([data-section-name="custom-messages"])) {
205+
#main-outlet-wrapper:not(
206+
:has([data-section-name="ai-conversations-history"])
207+
) {
216208
grid-template-areas: "content";
217209
grid-template-columns: 1fr !important;
218210

0 commit comments

Comments
 (0)