diff --git a/web/cm_plugins/markdown_widget.ts b/web/cm_plugins/markdown_widget.ts index 2521640..16eca17 100644 --- a/web/cm_plugins/markdown_widget.ts +++ b/web/cm_plugins/markdown_widget.ts @@ -234,7 +234,6 @@ export class MarkdownWidget extends WidgetType { get estimatedHeight(): number { const cacheItem = this.client.getWidgetCache(this.cacheKey); - // console.log("Calling estimated height", this.bodyText, cacheItem); return cacheItem ? cacheItem.height : -1; } diff --git a/web/styles/editor.scss b/web/styles/editor.scss index 7e675b2..045e752 100644 --- a/web/styles/editor.scss +++ b/web/styles/editor.scss @@ -429,6 +429,16 @@ margin-top: 10px; } + .sb-markdown-top-widget:has(*) { + max-height: 500px; + } + + @media screen and (max-height: 1000px) { + .sb-markdown-top-widget:has(*) { + max-height: 300px; + } + } + .sb-markdown-widget, .sb-markdown-top-widget:has(*), .sb-markdown-bottom-widget:has(*) {