max height buffer to prevent small scrollbar (#214654)

This commit is contained in:
Aaron Munger 2024-06-07 16:40:42 -07:00 committed by GitHub
parent 069408ab2c
commit 76664e7ce6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -462,7 +462,7 @@ export const activate: ActivationFunction<void> = (ctx) => {
border-color: var(--theme-input-focus-border-color);
}
#container div.output .scrollable {
overflow-y: scroll;
overflow-y: auto;
max-height: var(--notebook-cell-output-max-height);
}
#container div.output .scrollable.scrollbar-visible {

View file

@ -270,7 +270,7 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
'notebook-markdown-line-height': typeof this.options.markdownLineHeight === 'number' && this.options.markdownLineHeight > 0 ? `${this.options.markdownLineHeight}px` : `normal`,
'notebook-cell-output-font-size': `${this.options.outputFontSize || this.options.fontSize}px`,
'notebook-cell-output-line-height': `${this.options.outputLineHeight}px`,
'notebook-cell-output-max-height': `${this.options.outputLineHeight * this.options.outputLineLimit}px`,
'notebook-cell-output-max-height': `${this.options.outputLineHeight * this.options.outputLineLimit + 2}px`,
'notebook-cell-output-font-family': this.options.outputFontFamily || this.options.fontFamily,
'notebook-cell-markup-empty-content': nls.localize('notebook.emptyMarkdownPlaceholder', "Empty markdown cell, double-click or press enter to edit."),
'notebook-cell-renderer-not-found-error': nls.localize({