Skip to content

Commit b090720

Browse files
benibenjbpasero
andauthored
* position relative * Update src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css Co-authored-by: Benjamin Pasero <[email protected]> --------- Co-authored-by: Benjamin Pasero <[email protected]>
1 parent aad333b commit b090720

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,15 @@
193193
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container.disable-sticky-tabs > .tab.sizing-fit.sticky-shrink,
194194
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container.disable-sticky-tabs > .tab.sizing-shrink.sticky-shrink,
195195
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container.disable-sticky-tabs > .tab.sizing-fixed.sticky-shrink {
196-
position: static; /** disable sticky positions for sticky compact/shrink/fixed tabs if the available space is too little */
196+
197+
/**
198+
* If sticky tabs are explicitly disabled, because width is too little, make sure
199+
* to reset all styles associated with sticky tabs. This includes position, z-index
200+
* and left property (which is set on the element itself, hence important is needed).
201+
*/
202+
position: relative;
203+
z-index: unset;
204+
left: unset !important;
197205
}
198206

199207
.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-shrink.tab-actions-left::after,

0 commit comments

Comments
 (0)