Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ export default class AiBotSidebarNewConversation extends Component {

<template>
{{#if this.shouldRender}}
<DButton
@label="discourse_ai.ai_bot.conversations.new"
@icon="plus"
@action={{this.routeTo}}
class="ai-new-question-button btn-default"
/>
<div class="ai-new-question-button__wrapper">
<DButton
@label="discourse_ai.ai_bot.conversations.new"
@icon="plus"
@action={{this.routeTo}}
class="ai-new-question-button btn-default"
/>
</div>
{{/if}}
</template>
}
19 changes: 14 additions & 5 deletions assets/stylesheets/modules/ai-bot-conversations/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@

body.has-ai-conversations-sidebar {
.ai-new-question-button {
margin: 1.8em 1rem 0;
width: 100%;

&__wrapper {
background: var(--secondary);
margin: 1.8em 1em 0;

.mobile-view & {
padding: 1em;
position: sticky;
top: 0;
margin: -0.5em 0 0; // avoid shift when sticking
z-index: 1;
}
}
}

.sidebar-toggle-all-sections {
Expand All @@ -16,10 +29,6 @@ body.has-ai-conversations-sidebar {

.sidebar-wrapper,
.hamburger-dropdown-wrapper {
.ai-conversations-panel {
padding-top: 1em;
}

// ai related sidebar content
[data-section-name="ai-conversations-history"] {
.sidebar-section-header-wrapper {
Expand Down
Loading