Skip to content

Commit 9844d2b

Browse files
author
Miguel Solorio
committed
Show dirty state icon when tabCloseButton is off
1 parent e331b5f commit 9844d2b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
overflow: visible; /* ...but still show the close button on hover, focus and when dirty */
187187
}
188188

189-
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-off > .tab-close {
189+
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-off:not(.dirty) > .tab-close {
190190
display: none; /* hide the close action bar when we are configured to hide it */
191191
}
192192

@@ -233,10 +233,7 @@
233233
}
234234

235235
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-off.dirty:not(.dirty-border-top) {
236-
background-repeat: no-repeat;
237-
background-position-y: center;
238-
background-position-x: calc(100% - 6px); /* to the right of the tab label */
239-
padding-right: 28px; /* make room for dirty indication when we are running without close button */
236+
padding-right: 0; /* remove extra padding when we are running without close button */
240237
}
241238

242239
/* Editor Actions */

0 commit comments

Comments
 (0)