Skip to content

Commit 827c227

Browse files
committed
chore: ai panel show more buttons only on hover
1 parent dbe1f70 commit 827c227

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/styles/Extn-AIChatPanel.less

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
display: flex;
8383
align-items: center;
8484
gap: 2px;
85+
opacity: 0;
86+
pointer-events: none;
87+
transition: opacity 0.5s ease;
8588
}
8689

8790
.ai-history-btn {
@@ -122,9 +125,8 @@
122125
height: 26px;
123126
border-radius: 3px;
124127
cursor: pointer;
125-
opacity: 0;
128+
opacity: 0.7;
126129
transition: opacity 0.15s ease, background-color 0.15s ease;
127-
pointer-events: none;
128130

129131
&:hover {
130132
opacity: 1;
@@ -153,12 +155,14 @@
153155
}
154156
}
155157

156-
/* Show settings gear on tab container hover */
157-
.ai-tab-container:hover .ai-settings-btn {
158-
opacity: 0.7;
158+
/* Show header actions on tab container hover */
159+
.ai-tab-container:hover .ai-chat-header-actions {
160+
opacity: 1;
159161
pointer-events: auto;
162+
transition: opacity 0.15s ease;
160163
}
161164

165+
162166
/* ── Session history dropdown ──────────────────────────────────────── */
163167
/* When history is open, hide chat content and show the dropdown instead */
164168
.ai-chat-panel.ai-history-open {

0 commit comments

Comments
 (0)