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

Commit 1074801

Browse files
authored
UX: minor alignment adjustments for experiemental bot UI (#1285)
* UX: minor alignment adjustments for experiemental bot UI * account for powered by discourse badge * breakpoint lint
1 parent 797d727 commit 1074801

File tree

1 file changed

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

1 file changed

+13
-8
lines changed

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
body.has-ai-conversations-sidebar {
99
.ai-new-question-button {
10-
margin: 1em 2em 1em 1em;
10+
margin: 1.8em 1rem 0;
1111
}
1212

1313
.sidebar-wrapper {
1414
.ai-conversations-panel {
15-
padding-top: 0;
15+
padding-top: 1em;
1616
}
1717

1818
// ai related sidebar content
@@ -151,7 +151,9 @@ body.has-ai-conversations-sidebar {
151151
}
152152

153153
.ai-bot-conversations {
154-
height: calc(100dvh - var(--header-offset) - 1.25em);
154+
display: flex;
155+
flex-direction: column;
156+
height: calc(100dvh - var(--header-offset) - 5em);
155157

156158
.persona-llm-selector {
157159
display: flex;
@@ -195,15 +197,18 @@ body.has-ai-conversations-sidebar {
195197
box-sizing: border-box;
196198
align-items: center;
197199
justify-content: center;
198-
height: calc(90% - 1.25em - var(--header-offset));
199-
200-
@include viewport.until(sm) {
201-
height: calc(75% - 1.25em - var(--header-offset) - 2em);
202-
}
200+
flex: 1 1 auto;
203201

204202
.loading-container {
205203
display: contents;
206204
}
205+
206+
// optical centering for layout balance
207+
@media screen and (min-height: 600px) {
208+
h1 {
209+
margin-top: -6em;
210+
}
211+
}
207212
}
208213

209214
&__input-wrapper {

0 commit comments

Comments
 (0)