1
0

Maximum heights for top widgets

This commit is contained in:
Zef Hemel 2024-01-09 09:57:07 +01:00
parent e07001dae9
commit 3ae7ed7e3d
2 changed files with 10 additions and 1 deletions

View File

@ -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;
}

View File

@ -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(*) {