Skip to content

Commit 8e872f4

Browse files
committed
Move execution order label
Fix #104680
1 parent ad4e975 commit 8e872f4

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/vs/workbench/contrib/notebook/browser/media/notebook.css

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
z-index: 1000;
6262
}
6363

64+
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image .execution-count-label {
65+
display: none;
66+
}
67+
6468
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-drag-image .cell-editor-container > div {
6569
padding: 12px 16px;
6670
}
@@ -401,24 +405,19 @@
401405
visibility: visible;
402406
}
403407

404-
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell .run-button-container .execution-count-label {
408+
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell .execution-count-label {
405409
position: absolute;
406-
top: -2px;
407410
font-size: 10px;
408411
font-family: var(--monaco-monospace-font);
409-
visibility: visible;
410412
white-space: pre;
411-
width: 100%;
412-
text-align: center;
413-
padding-right: 8px;
414413
box-sizing: border-box;
415414
opacity: .6;
416-
}
417415

418-
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row:hover .cell .run-button-container .execution-count-label,
419-
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.cell-output-hover .cell .run-button-container .execution-count-label,
420-
.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row.focused .cell .run-button-container .execution-count-label {
421-
visibility: hidden;
416+
/* Sizing hacks */
417+
left: 26px;
418+
width: 35px;
419+
bottom: 0px;
420+
text-align: center;
422421
}
423422

424423
.monaco-workbench .notebookOverlay .cell .cell-editor-part {

src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ export class CodeCellRenderer extends AbstractCellRenderer implements IListRende
661661
const runButtonContainer = DOM.append(cellContainer, $('.run-button-container'));
662662
const runToolbar = disposables.add(this.createToolbar(runButtonContainer));
663663

664-
const executionOrderLabel = DOM.append(runButtonContainer, $('div.execution-count-label'));
664+
const executionOrderLabel = DOM.append(cellContainer, $('div.execution-count-label'));
665665

666666
// create a special context key service that set the inCompositeEditor-contextkey
667667
const editorContextKeyService = disposables.add(this.contextKeyServiceProvider(container));

0 commit comments

Comments
 (0)