mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Move cell execution label under the drag handle so it doesn't block dragging
This commit is contained in:
@@ -603,7 +603,7 @@
|
||||
box-sizing: border-box;
|
||||
opacity: .7;
|
||||
width: 35px;
|
||||
left: -35px;
|
||||
right: 0px;
|
||||
|
||||
/* Sizing hacks */
|
||||
bottom: 0px;
|
||||
|
||||
@@ -381,6 +381,8 @@ export class CodeCellRenderer extends AbstractCellRenderer implements IListRende
|
||||
const decorationContainer = DOM.append(rootContainer, $('.cell-decoration'));
|
||||
const focusIndicatorTop = new FastDomNode(DOM.append(container, $('.cell-focus-indicator.cell-focus-indicator-top')));
|
||||
const titleToolbarContainer = DOM.append(container, $('.cell-title-toolbar'));
|
||||
|
||||
// This is also the drag handle
|
||||
const focusIndicatorLeft = new FastDomNode(DOM.append(container, DOM.$('.cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-left')));
|
||||
|
||||
const cellContainer = DOM.append(container, $('.cell.code'));
|
||||
@@ -388,7 +390,7 @@ export class CodeCellRenderer extends AbstractCellRenderer implements IListRende
|
||||
const cellInputCollapsedContainer = DOM.append(cellContainer, $('.input-collapse-container'));
|
||||
|
||||
const runToolbar = templateDisposables.add(this.instantiationService.createInstance(RunToolbar, this.notebookEditor, contextKeyService, container, runButtonContainer));
|
||||
const executionOrderLabel = DOM.append(cellContainer, $('div.execution-count-label'));
|
||||
const executionOrderLabel = DOM.append(focusIndicatorLeft.domNode, $('div.execution-count-label'));
|
||||
executionOrderLabel.title = localize('cellExecutionOrderCountLabel', 'Execution Order');
|
||||
|
||||
const editorPart = DOM.append(cellContainer, $('.cell-editor-part'));
|
||||
|
||||
Reference in New Issue
Block a user