Skip to content

Commit 904c29e

Browse files
committed
feat: hide the bottom panel and don’t destroy any active ones
1 parent 611b46c commit 904c29e

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

src/styles/Extn-BottomPanelTabs.less

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
4646

4747
.toolbar {
4848
box-shadow: none;
49-
50-
.close {
51-
display: none;
52-
}
5349
}
5450
}
5551
}
@@ -200,29 +196,29 @@
200196
flex: 0 0 auto;
201197
}
202198

203-
.bottom-panel-close-all-btn {
199+
.bottom-panel-hide-btn {
204200
display: flex;
205201
align-items: center;
206202
justify-content: center;
207203
width: 1.6rem;
208204
height: 1.6rem;
205+
margin-right: 0.3rem;
209206
border-radius: 3px;
210207
cursor: pointer;
211-
color: #777;
212-
font-size: 1.3rem;
208+
color: #333;
209+
font-size: 0.8rem;
210+
-webkit-text-stroke: 0.4px;
213211
line-height: 1;
214-
transition: color 0.12s ease, background-color 0.12s ease;
212+
transition: background-color 0.12s ease;
215213

216214
.dark & {
217-
color: #777;
215+
color: #fff;
218216
}
219217

220218
&:hover {
221-
color: #333;
222219
background-color: rgba(0, 0, 0, 0.1);
223220

224221
.dark & {
225-
color: #fff;
226222
background-color: rgba(255, 255, 255, 0.12);
227223
}
228224
}

src/view/WorkspaceManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ define(function (require, exports, module) {
534534
$bottomPanelTabsOverflow = $('<div class="bottom-panel-tabs-overflow"></div>');
535535
let $tabBarActions = $('<div class="bottom-panel-tab-bar-actions"></div>');
536536
$tabBarActions.append(
537-
'<span class="bottom-panel-close-all-btn" title="Close Panel">&times;</span>'
537+
'<span class="bottom-panel-hide-btn" title="Hide Panel"><i class="fa-solid fa-chevron-down"></i></span>'
538538
);
539539
$bottomPanelTabBar.append($bottomPanelTabsOverflow);
540540
$bottomPanelTabBar.append($tabBarActions);
@@ -568,8 +568,8 @@ define(function (require, exports, module) {
568568
}
569569
});
570570

571-
// Close-panel button collapses the container but keeps tabs intact
572-
$bottomPanelTabBar.on("click", ".bottom-panel-close-all-btn", function (e) {
571+
// Hide-panel button collapses the container but keeps tabs intact
572+
$bottomPanelTabBar.on("click", ".bottom-panel-hide-btn", function (e) {
573573
e.stopPropagation();
574574
if ($bottomPanelContainer.is(":visible")) {
575575
Resizer.hide($bottomPanelContainer[0]);

0 commit comments

Comments
 (0)