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

Commit f2c2fb5

Browse files
committed
Put new topic button at the top
1 parent 408eaa9 commit f2c2fb5

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export default {
3939
}
4040
);
4141

42-
api.renderInOutlet("sidebar-footer-actions", AiBotSidebarNewConversation);
42+
api.renderInOutlet(
43+
"before-sidebar-sections",
44+
AiBotSidebarNewConversation
45+
);
4346
api.addSidebarSection(
4447
(BaseCustomSidebarSection, BaseCustomSidebarSectionLink) => {
4548
const AiConversationLink = class extends BaseCustomSidebarSectionLink {

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,16 @@
44
}
55

66
body.has-ai-conversations-sidebar {
7+
.ai-new-question-button {
8+
margin: 1em 2em 1em 1em;
9+
}
710
.sidebar-wrapper {
8-
.sidebar-footer-actions {
9-
display: flex;
10-
flex-direction: column;
11-
margin-left: 0;
12-
align-items: flex-end;
13-
width: 100%;
14-
15-
.ai-new-question-button {
16-
width: 100%;
17-
}
18-
}
19-
2011
.sidebar-container {
2112
border: none;
2213
}
14+
.ai-conversations-panel {
15+
padding-top: 0;
16+
}
2317

2418
// ai related sidebar content
2519
[data-section-name="ai-conversations-history"] {

0 commit comments

Comments
 (0)