|
39 | 39 | background-color: @bc-sidebar-bg; |
40 | 40 | color: @project-panel-text-1; |
41 | 41 | font-size: @sidebar-content-font-size; |
| 42 | + container-type: inline-size; |
42 | 43 | } |
43 | 44 |
|
44 | 45 | /* ── Header ─────────────────────────────────────────────────────────── */ |
|
87 | 88 | transition: opacity 0.5s ease; |
88 | 89 | } |
89 | 90 |
|
90 | | - .ai-history-btn { |
91 | | - display: flex; |
92 | | - align-items: center; |
93 | | - justify-content: center; |
94 | | - background: none; |
95 | | - border: none; |
96 | | - color: @project-panel-text-2; |
97 | | - font-size: @menu-item-font-size; |
98 | | - width: 26px; |
99 | | - height: 26px; |
100 | | - border-radius: 3px; |
101 | | - cursor: pointer; |
102 | | - opacity: 0.7; |
103 | | - transition: opacity 0.15s ease, background-color 0.15s ease; |
104 | | - |
105 | | - &:hover { |
106 | | - opacity: 1; |
107 | | - background-color: rgba(255, 255, 255, 0.06); |
108 | | - } |
109 | | - |
110 | | - &.active { |
111 | | - opacity: 1; |
112 | | - background-color: rgba(255, 255, 255, 0.08); |
113 | | - } |
114 | | - } |
115 | | - |
| 91 | + .ai-history-btn, |
116 | 92 | .ai-settings-btn { |
117 | 93 | display: flex; |
118 | 94 | align-items: center; |
119 | 95 | justify-content: center; |
120 | | - background: none; |
121 | | - border: none; |
122 | 96 | color: @project-panel-text-2; |
123 | 97 | font-size: @menu-item-font-size; |
124 | 98 | width: 26px; |
125 | 99 | height: 26px; |
126 | | - border-radius: 3px; |
127 | 100 | cursor: pointer; |
128 | | - opacity: 0.7; |
129 | | - transition: opacity 0.15s ease, background-color 0.15s ease; |
130 | | - |
131 | | - &:hover { |
132 | | - opacity: 1; |
133 | | - background-color: rgba(255, 255, 255, 0.06); |
134 | | - } |
135 | 101 | } |
136 | 102 |
|
137 | 103 | .ai-new-session-btn { |
138 | 104 | display: flex; |
139 | 105 | align-items: center; |
140 | 106 | gap: 4px; |
141 | | - background: none; |
142 | | - border: none; |
143 | 107 | color: @project-panel-text-2; |
144 | 108 | font-size: @menu-item-font-size; |
| 109 | + height: 26px; |
145 | 110 | padding: 0 8px; |
146 | | - border-radius: 3px; |
147 | 111 | cursor: pointer; |
148 | | - opacity: 0.7; |
149 | | - transition: opacity 0.15s ease, background-color 0.15s ease; |
150 | | - |
151 | | - &:hover { |
152 | | - opacity: 1; |
153 | | - background-color: rgba(255, 255, 255, 0.06); |
154 | | - } |
155 | 112 | } |
156 | 113 | } |
157 | 114 |
|
|
163 | 120 | } |
164 | 121 |
|
165 | 122 |
|
| 123 | +/* Left-align title when sidebar is narrow to free space for action buttons */ |
| 124 | +@container (max-width: 380px) { |
| 125 | + .ai-chat-header { |
| 126 | + justify-content: flex-start; |
| 127 | + } |
| 128 | +} |
| 129 | + |
166 | 130 | /* ── Session history dropdown ──────────────────────────────────────── */ |
167 | 131 | /* When history is open, hide chat content and show the dropdown instead */ |
168 | 132 | .ai-chat-panel.ai-history-open { |
|
0 commit comments