Maximum heights for top widgets
This commit is contained in:
parent
e07001dae9
commit
3ae7ed7e3d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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(*) {
|
||||
|
Loading…
Reference in New Issue
Block a user