Skip to content

Commit 609cef6

Browse files
committed
fix: ai header buttons use btn-alt-quiet style and left-align title on narrow sidebar
1 parent 827c227 commit 609cef6

1 file changed

Lines changed: 10 additions & 46 deletions

File tree

src/styles/Extn-AIChatPanel.less

Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
background-color: @bc-sidebar-bg;
4040
color: @project-panel-text-1;
4141
font-size: @sidebar-content-font-size;
42+
container-type: inline-size;
4243
}
4344

4445
/* ── Header ─────────────────────────────────────────────────────────── */
@@ -87,71 +88,27 @@
8788
transition: opacity 0.5s ease;
8889
}
8990

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,
11692
.ai-settings-btn {
11793
display: flex;
11894
align-items: center;
11995
justify-content: center;
120-
background: none;
121-
border: none;
12296
color: @project-panel-text-2;
12397
font-size: @menu-item-font-size;
12498
width: 26px;
12599
height: 26px;
126-
border-radius: 3px;
127100
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-
}
135101
}
136102

137103
.ai-new-session-btn {
138104
display: flex;
139105
align-items: center;
140106
gap: 4px;
141-
background: none;
142-
border: none;
143107
color: @project-panel-text-2;
144108
font-size: @menu-item-font-size;
109+
height: 26px;
145110
padding: 0 8px;
146-
border-radius: 3px;
147111
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-
}
155112
}
156113
}
157114

@@ -163,6 +120,13 @@
163120
}
164121

165122

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+
166130
/* ── Session history dropdown ──────────────────────────────────────── */
167131
/* When history is open, hide chat content and show the dropdown instead */
168132
.ai-chat-panel.ai-history-open {

0 commit comments

Comments
 (0)