Skip to content

Commit 360544c

Browse files
committed
fix: close button in pane header not appearing
1 parent 0bba5dd commit 360544c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/styles/brackets.less

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -906,25 +906,25 @@ a, img {
906906
&-close-btn {
907907
position: relative;
908908
display: none;
909-
height: 16px;
910-
width: 16px;
909+
height: 18px;
910+
width: 18px;
911911
float: right;
912912
margin-top: -2px;
913913

914-
&:before {
914+
i {
915915
color: rgba(0, 0, 0, 0.5);
916916
}
917917

918-
&:hover:before {
918+
&:hover i {
919919
color: rgba(0, 0, 0, 0.8);
920920
}
921921

922922
.dark & {
923-
&:before {
923+
i {
924924
color: rgba(255, 255, 255, 0.5);
925925
}
926926

927-
&:hover:before {
927+
&:hover i {
928928
color: rgba(255, 255, 255, 0.8);
929929
}
930930
}

src/view/Pane.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ define(function (require, exports, module) {
250250
$headerCloseBtn = $header.find(".pane-header-close-btn"),
251251
$content = $el.find(".pane-content");
252252

253+
$headerCloseBtn.html("<i class='fa-solid fa-times'></i>");
254+
253255
$el.on("focusin.pane", function (e) {
254256
self._lastFocusedElement = e.target;
255257
});

0 commit comments

Comments
 (0)