File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type {
33 RendererContext
44} from 'vscode-notebook-renderer' ;
55import { OutputLoader } from './outputLoader' ;
6- import './style .css' ;
6+ import './styles .css' ;
77const htl = require ( 'htl' ) ;
88const inputs = require ( '@observablehq/inputs' ) ;
99const dataSummary = require ( './dataSummaryView.js' ) ;
@@ -44,10 +44,7 @@ export function render(output: IRenderInfo) {
4444 }
4545 else {
4646 // output text in pre/code tags
47- output . container . appendChild ( htl . html `< pre
48- style ="max-height: 300px; white-space: pre-wrap; tab-size: 2; overflow: auto; ">
49- < code style ="display: block; white-space: pre-wrap; "> ${ data } </ code >
50- </ pre > ` ) ;
47+ output . container . appendChild ( htl . html `< pre class ="text-output "> < code > ${ data } </ code > </ pre > ` ) ;
5148 }
5249}
5350
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type {
33 RendererContext
44} from 'vscode-notebook-renderer' ;
55import { OutputLoader } from './outputLoader' ;
6- import './style .css' ;
6+ import './styles .css' ;
77const htl = require ( 'htl' ) ;
88const inputs = require ( '@observablehq/inputs' ) ;
99
@@ -48,10 +48,7 @@ export function render(output: IRenderInfo) {
4848 }
4949 else {
5050 // output text in pre/code tags
51- output . container . appendChild ( htl . html `< pre
52- style ="max-height: 300px; white-space: pre-wrap; tab-size: 2; overflow: auto; ">
53- < code style ="display: block; white-space: pre-wrap; "> ${ data } </ code >
54- </ pre > ` ) ;
51+ output . container . appendChild ( htl . html `< pre class ="text-output "> < code > ${ data } </ code > </ pre > ` ) ;
5552 }
5653}
5754
Original file line number Diff line number Diff line change 1+ .text-output {
2+ max-height : 360px ;
3+ overflow : auto;
4+ tab-size : 2 ;
5+ white-space : pre-wrap;
6+ }
7+
18.data-table {
29 max-width : 100% ;
310 background-color : var (--vscode-editor-background );
You can’t perform that action at this time.
0 commit comments