Skip to content

Commit cc8f122

Browse files
committed
fix: always reserve space for dirty icon to prevent tabs shift
1 parent 3a2db30 commit cc8f122

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-node/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/Extn-TabBar.less

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
.tab {
8181
display: inline-flex;
8282
align-items: center;
83-
padding: 0 0.5rem 0 0.85rem;
83+
padding: 0 0.5rem 0 0.6rem;
8484
height: 100%;
8585
background-color: #f1f1f1;
8686
border-right: 1px solid rgba(0, 0, 0, 0.05);
@@ -108,6 +108,7 @@
108108
display: flex;
109109
align-items: center;
110110
margin-bottom: -2px;
111+
margin-left: 0.7rem;
111112
}
112113

113114
.tab-name {
@@ -191,21 +192,25 @@
191192
background-color: #666;
192193
}
193194

194-
.tab.dirty::before {
195+
.tab::before {
195196
content: "";
196-
color: #888;
197+
color: transparent;
197198
font-size: 1.6rem;
198199
position: absolute;
199-
left: 0.75rem;
200+
left: 0.4rem;
200201
top: 0.25rem;
201202
}
202203

204+
.tab.dirty::before {
205+
color: #888;
206+
}
207+
203208
.dark .tab.dirty::before {
204209
color: #8D8D8E;
205210
}
206211

207212
.tab.dirty .tab-icon {
208-
margin-left: 0.8rem;
213+
margin-left: 0.7rem;
209214
}
210215

211216
.tab-close {
@@ -408,4 +413,4 @@
408413
.dropdown-tab-item.placeholder-item .tab-name-container,
409414
.tab-name-container.placeholder-name {
410415
font-style: italic;
411-
}
416+
}

0 commit comments

Comments
 (0)