pull/143313/head
rebornix 2022-02-16 16:08:24 -08:00
parent 54f255c2fc
commit 8eb145d146
No known key found for this signature in database
GPG Key ID: 181FC90D15393C20
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,7 @@ function renderStream(outputInfo: OutputItem, container: HTMLElement, error: boo
function renderText(outputInfo: OutputItem, container: HTMLElement, ctx: RendererContext<void> & { readonly settings: { readonly lineLimit: number } }): void {
const contentNode = document.createElement('div');
contentNode.classList.add('.output-plaintext');
contentNode.classList.add('output-plaintext');
const text = outputInfo.text();
truncatedArrayOfString(outputInfo.id, [text], ctx.settings.lineLimit, contentNode);
container.appendChild(contentNode);
@ -160,6 +160,7 @@ export const activate: ActivationFunction<void> = (ctx) => {
const style = document.createElement('style');
style.textContent = `
.output-plaintext,
.output-stream {
line-height: 22px;
font-family: var(--notebook-cell-output-font-family);