Skip to content

Commit 6e1a55c

Browse files
committed
fix: hide close button on inactive tabs in collapsed icon mode
Use visibility:hidden so inactive tabs keep their spacing but prevent accidental close clicks. Users must activate a tab first before closing it when in collapsed mode.
1 parent d5b7b7d commit 6e1a55c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/styles/Extn-BottomPanelTabs.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,17 @@ img.panel-titlebar-icon {
188188
.bottom-panel-tab-icon ~ .bottom-panel-tab-title {
189189
display: none;
190190
}
191-
/* Increase spacing between icon and close button to prevent accidental clicks */
191+
/* Increase spacing in collapsed mode */
192192
.bottom-panel-tab {
193193
padding: 0 0.6rem 0 0.8rem;
194194
}
195195
.bottom-panel-tab-close-btn {
196196
margin-left: 0.8rem;
197197
}
198+
/* Only show close button on the active tab to prevent accidental clicks */
199+
.bottom-panel-tab:not(.active) .bottom-panel-tab-close-btn {
200+
visibility: hidden;
201+
}
198202
}
199203

200204
.bottom-panel-tab-close-btn {

0 commit comments

Comments
 (0)