Skip to content

Commit 84170f2

Browse files
devvaannshabose
authored andcommitted
refactor: git markers styles in tabs
1 parent aecaf49 commit 84170f2

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/extensionsIntegrated/TabBar/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ define(function (require, exports, module) {
163163
title="${Phoenix.app.getDisplayPath(entry.path)}${gitStatus ? " (" + gitStatus + ")" : ""}">
164164
<div class="tab-icon"></div>
165165
<div class="tab-name"></div>
166-
${gitStatusLetter ? `<div class="tab-git-status">${gitStatusLetter}</div>` : ""}
167166
<div class="tab-close"><i class="fa-solid fa-times"></i></div>
168167
</div>`
169168
);

src/styles/Extn-TabBar.less

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -424,27 +424,26 @@
424424
}
425425

426426
/* ------ for the git status markers -------------- */
427-
.tab-git-status {
428-
font-size: 0.9rem;
429-
font-weight: bold;
430-
display: flex;
431-
align-items: center;
432-
justify-content: center;
433-
margin-left: 0.33rem;
434-
}
435-
436-
.git-modified .tab-git-status {
427+
.tab.git-modified > .tab-icon:before {
428+
content: "|";
437429
color: #E3B551;
430+
position: absolute;
431+
margin-left: -4px;
432+
margin-bottom: 5px;
438433
}
439434

440-
.dark .git-modified .tab-git-status {
435+
.dark .tab.git-modified > .tab-icon:before {
441436
color: #E3B551;
442437
}
443438

444-
.git-new .tab-git-status {
439+
.tab.git-new > .tab-icon:before {
440+
content: "|";
445441
color: #91CC41;
442+
position: absolute;
443+
margin-left: -4px;
444+
margin-bottom: 5px;
446445
}
447446

448-
.dark .git-new .tab-git-status {
447+
.dark .tab.git-new > .tab-icon:before {
449448
color: #91CC41;
450449
}

0 commit comments

Comments
 (0)