diff --git a/libs/components/src/notebook-cell/notebook-cell.scss b/libs/components/src/notebook-cell/notebook-cell.scss index 63ae2b40ca..0bd44f75b6 100644 --- a/libs/components/src/notebook-cell/notebook-cell.scss +++ b/libs/components/src/notebook-cell/notebook-cell.scss @@ -28,9 +28,19 @@ cv-code-editor { background-color: var(--cv-theme-primary); border-radius: 2px; cursor: move; + height: 100%; margin-top: 2px; visibility: hidden; +} + +.selectionIndicatorWrapper { min-width: 8px; + + &:hover { + .selectionIndicator { + visibility: visible; + } + } } .timesExecuted { @@ -42,6 +52,7 @@ cv-code-editor { height: 100%; justify-content: end; line-height: var(--mdc-typography-body2-line-height); + width: 50px; text-wrap: nowrap; .executionCount { @@ -66,7 +77,6 @@ cv-code-editor { display: flex; justify-content: space-between; - &:hover, &.focused, &.selected { .selectionIndicator { @@ -90,15 +100,14 @@ cv-code-editor { display: flex; gap: 0.75rem; justify-content: end; - width: calc(100% - 2rem); + width: calc(100% - 1.5rem); } .cellOutputWrapper { display: flex; flex-direction: column; gap: 0.75rem; - max-width: 92%; - min-width: 92%; + width: calc(100% - 58px); } .output { diff --git a/libs/components/src/notebook-cell/notebook-cell.ts b/libs/components/src/notebook-cell/notebook-cell.ts index cffef08de9..83b08c0a14 100644 --- a/libs/components/src/notebook-cell/notebook-cell.ts +++ b/libs/components/src/notebook-cell/notebook-cell.ts @@ -171,7 +171,10 @@ export class CovalentNotebookCell extends LitElement { }; return html`