Skip to content

Commit 7d82ae6

Browse files
committed
refactor: styling issues
1 parent 62ac120 commit 7d82ae6

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/extensionsIntegrated/TabBar/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ define(function (require, exports, module) {
106106
title="${entry.path}">
107107
<div class="tab-icon"></div>
108108
<div class="tab-name"></div>
109-
<div class="tab-close"><i class="fa-solid fa-xmark"></i></div>
109+
<div class="tab-close"><i class="fa-solid fa-times"></i></div>
110110
</div>`);
111111

112112
// Add the file icon
@@ -271,7 +271,7 @@ define(function (require, exports, module) {
271271
// delegate event handling for both tab bars
272272
$(document).on("click", ".tab", function (event) {
273273
// check if the clicked element is the close button
274-
if ($(event.target).hasClass('fa-xmark') || $(event.target).closest('.tab-close').length) {
274+
if ($(event.target).hasClass('fa-times') || $(event.target).closest('.tab-close').length) {
275275
// Get the file path from the data-path attribute of the parent tab
276276
const filePath = $(this).attr("data-path");
277277
if (filePath) {

src/styles/Extn-TabBar.less

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
transition: height 0.3s ease;
1515
}
1616

17+
.phoenix-tab-bar::-webkit-scrollbar {
18+
height: 4px;
19+
}
20+
1721
.phoenix-tab-bar .hover {
1822
background-color: #333;
1923
}
@@ -66,7 +70,7 @@
6670
bottom: 0;
6771
left: 0;
6872
right: 0;
69-
height: 2px;
73+
height: 2.2px;
7074
background-color: #75BEFF;
7175
}
7276

@@ -87,10 +91,11 @@
8791

8892
.tab-close {
8993
font-size: 12px;
90-
font-weight: lighter;
94+
font-weight: 300;
9195
padding: 1px 4px 0.4px 4px;
92-
margin-left: 3px;
93-
color: #808080;
96+
margin-left: 4px;
97+
margin-top: -1px;
98+
color: #CCC;
9499
transition: all 0.2s ease;
95100
border-radius: 3px;
96101
visibility: hidden;
@@ -106,6 +111,5 @@
106111
}
107112

108113
.tab-close:hover {
109-
color: #CCCCCC;
110114
background-color: rgba(255, 255, 255, 0.1);
111115
}

0 commit comments

Comments
 (0)