Skip to content

Commit

Permalink
fix(notebooks): fix cell output overflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bsahitya committed Jul 10, 2024
1 parent 474c8ec commit bd67819
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/components/src/code-editor/code-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createRef, Ref, ref } from 'lit/directives/ref.js';
import styles from './code-editor.scss?inline';

// -- Monaco Editor Imports --
import { editor } from 'monaco-editor/esm/vs/editor/editor.api';
import { editor } from 'monaco-editor/esm/vs/editor/editor.api.js';
import baseStyles from 'monaco-editor/min/vs/editor/editor.main.css?inline';

// Register all language contributions
Expand Down
2 changes: 2 additions & 0 deletions libs/components/src/notebook/notebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ export class CovalentNotebook extends LitElement {
html`${output.data &&
Object.keys(output.data).map((key) => {
const content = document.createElement('div');
content.style.maxWidth = '100%';
content.style.overflow = 'auto';
const md = markdownit({ html: true });
switch (key) {
case 'text/markdown':
Expand Down

0 comments on commit bd67819

Please sign in to comment.