Skip to content

Commit 851ca57

Browse files
authored
UX: style adjustments for conversations (#1325)
1 parent 1b71330 commit 851ca57

File tree

1 file changed

+37
-16
lines changed
  • assets/stylesheets/modules/ai-bot-conversations

1 file changed

+37
-16
lines changed

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

+37-16
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,9 @@ body.has-ai-conversations-sidebar {
113113
}
114114

115115
#topic-footer-buttons {
116-
width: calc(100% - 6.5em);
117-
margin-top: 0;
118-
119-
@include viewport.until(md) {
120-
max-width: unset;
121-
width: 100%;
122-
}
123-
124-
@include viewport.from(xl) {
125-
width: 100%;
126-
max-width: 51em;
127-
}
116+
margin-top: 1em;
117+
width: 100%;
118+
max-width: 50.5em;
128119

129120
.topic-footer-main-buttons {
130121
justify-content: flex-end;
@@ -151,10 +142,6 @@ body.has-ai-conversations-sidebar {
151142
}
152143
}
153144

154-
.topic-footer-main-buttons {
155-
margin-left: calc(var(--topic-avatar-width) - 1.15em);
156-
}
157-
158145
.ai-bot-conversations {
159146
--input-max-width: 46em;
160147
display: flex;
@@ -169,13 +156,26 @@ body.has-ai-conversations-sidebar {
169156
&__selection-wrapper {
170157
display: flex;
171158
flex-direction: column;
159+
min-width: 0;
160+
161+
@include viewport.until(sm) {
162+
.select-kit-header-wrapper {
163+
font-size: var(--font-down-1);
164+
}
165+
}
172166

173167
label {
174168
font-size: var(--font-down-1);
175169
font-weight: 300;
176170
margin-left: 1em;
177171
margin-bottom: 0;
178172
}
173+
174+
.name {
175+
display: block;
176+
177+
@include ellipsis;
178+
}
179179
}
180180

181181
.btn {
@@ -232,6 +232,10 @@ body.has-ai-conversations-sidebar {
232232
border: 1px solid var(--primary-low);
233233
border-radius: var(--d-input-border-radius);
234234

235+
&:has(textarea[disabled]) {
236+
background: var(--primary-very-low);
237+
}
238+
235239
@include viewport.from(sm) {
236240
width: 80%;
237241
max-width: var(--input-max-width);
@@ -291,6 +295,8 @@ body.has-ai-conversations-sidebar {
291295
scrollbar-color: var(--scrollbarThumbBg) var(--scrollbarBg);
292296
scrollbar-width: thin;
293297
transition: scrollbar-color 0.25s ease-in-out;
298+
height: 100%;
299+
line-height: var(--line-height-large);
294300

295301
&::-webkit-scrollbar-thumb {
296302
background-color: var(--scrollbarThumbBg);
@@ -424,4 +430,19 @@ body.has-ai-conversations-sidebar {
424430
margin-right: 0.15em;
425431
}
426432
}
433+
434+
// hide extra buttons
435+
.timeline-container .topic-timeline .timeline-footer-controls {
436+
display: none;
437+
}
438+
439+
.topic-footer-main-buttons {
440+
button:not(
441+
.create,
442+
.share-ai-conversation-button,
443+
.topic-admin-menu-trigger
444+
) {
445+
display: none;
446+
}
447+
}
427448
}

0 commit comments

Comments
 (0)