File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed
javascripts/discourse/components
stylesheets/modules/ai-bot-conversations Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ export default class AiBotSidebarNewConversation extends Component {
22
22
23
23
<template >
24
24
{{#if this . shouldRender }}
25
- <DButton
26
- @ label =" discourse_ai.ai_bot.conversations.new"
27
- @ icon =" plus"
28
- @ action ={{this .routeTo }}
29
- class =" ai-new-question-button btn-default"
30
- />
25
+ <div class =" ai-new-question-button__wrapper" >
26
+ <DButton
27
+ @ label =" discourse_ai.ai_bot.conversations.new"
28
+ @ icon =" plus"
29
+ @ action ={{this .routeTo }}
30
+ class =" ai-new-question-button btn-default"
31
+ />
32
+ </div >
31
33
{{/if }}
32
34
</template >
33
35
}
Original file line number Diff line number Diff line change 7
7
8
8
body .has-ai-conversations-sidebar {
9
9
.ai-new-question-button {
10
- margin : 1.8em 1rem 0 ;
10
+ width : 100% ;
11
+
12
+ & __wrapper {
13
+ background : var (--secondary );
14
+ margin : 1.8em 1em 0 ;
15
+
16
+ .mobile-view & {
17
+ padding : 1em ;
18
+ position : sticky ;
19
+ top : 0 ;
20
+ margin : -0.5em 0 0 ; // avoid shift when sticking
21
+ z-index : 1 ;
22
+ }
23
+ }
11
24
}
12
25
13
26
.sidebar-toggle-all-sections {
@@ -16,10 +29,6 @@ body.has-ai-conversations-sidebar {
16
29
17
30
.sidebar-wrapper ,
18
31
.hamburger-dropdown-wrapper {
19
- .ai-conversations-panel {
20
- padding-top : 1em ;
21
- }
22
-
23
32
// ai related sidebar content
24
33
[data-section-name = " ai-conversations-history" ] {
25
34
.sidebar-section-header-wrapper {
You can’t perform that action at this time.
0 commit comments