diff --git a/packages/notebook/src/browser/contributions/notebook-cell-actions-contribution.ts b/packages/notebook/src/browser/contributions/notebook-cell-actions-contribution.ts index 73f7c049c966e..c189868fb11a9 100644 --- a/packages/notebook/src/browser/contributions/notebook-cell-actions-contribution.ts +++ b/packages/notebook/src/browser/contributions/notebook-cell-actions-contribution.ts @@ -190,10 +190,10 @@ export class NotebookCellActionContribution implements MenuContribution, Command }); // Notebook Cell extra execution options - menus.registerIndependentSubmenu(NotebookCellActionContribution.CONTRIBUTED_CELL_EXECUTION_MENU, - nls.localizeByDefault('More...'), - { role: CompoundMenuNodeRole.Flat, icon: codicon('chevron-down') }); - menus.getMenu(NotebookCellActionContribution.CODE_CELL_SIDEBAR_MENU).addNode(menus.getMenuNode(NotebookCellActionContribution.CONTRIBUTED_CELL_EXECUTION_MENU)); + // menus.registerIndependentSubmenu(NotebookCellActionContribution.CONTRIBUTED_CELL_EXECUTION_MENU, + // nls.localizeByDefault('More...'), + // { role: CompoundMenuNodeRole.Flat, icon: codicon('chevron-down') }); + // menus.getMenu(NotebookCellActionContribution.CODE_CELL_SIDEBAR_MENU).addNode(menus.getMenuNode(NotebookCellActionContribution.CONTRIBUTED_CELL_EXECUTION_MENU)); // code cell output sidebar menu menus.registerSubmenu( diff --git a/packages/notebook/src/browser/style/index.css b/packages/notebook/src/browser/style/index.css index e17335df5fbdc..4d0ef1340d27b 100644 --- a/packages/notebook/src/browser/style/index.css +++ b/packages/notebook/src/browser/style/index.css @@ -129,11 +129,28 @@ background-color: var(--theia-editor-background); } -.theia-notebook-cell-sidebar { +.theia-notebook-cell-sidebar-toolbar { display: flex; flex-direction: column; padding: 2px; background-color: var(--theia-editor-background); + flex-grow: 1; +} + +.theia-notebook-cell-sidebar { + display: flex; + flex-direction: column; +} + +.theia-notebook-code-cell-execution-order { + height: 35px; + display: block; + font-family: var(--monaco-monospace-font); + font-size: 10px; + opacity: 0.7; + text-align: center; + white-space: pre; + padding: 5px 0; } .theia-notebook-cell-toolbar-item { @@ -159,11 +176,6 @@ flex-direction: row; } -.theia-notebook-cell-sidebar { - display: flex; - flex-direction: column; -} - .theia-notebook-main-container { display: flex; flex-direction: column; diff --git a/packages/notebook/src/browser/view/notebook-cell-toolbar.tsx b/packages/notebook/src/browser/view/notebook-cell-toolbar.tsx index c67b5a19ad100..548d42062ea42 100644 --- a/packages/notebook/src/browser/view/notebook-cell-toolbar.tsx +++ b/packages/notebook/src/browser/view/notebook-cell-toolbar.tsx @@ -65,7 +65,7 @@ export class NotebookCellToolbar extends NotebookCellActionBar { export class NotebookCellSidebar extends NotebookCellActionBar { override render(): React.ReactNode { - return
{`[${cell.exec ?? ' '}]`}
*/} +