This commit is contained in:
yumoqing 2025-09-11 10:32:30 +08:00
parent 6384917c61
commit 724aa68b41
3 changed files with 10 additions and 2 deletions

View File

@ -40,6 +40,15 @@ hr {
border-radius: 30%; border-radius: 30%;
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.tabular {
border-radius: 8px;
padding: 5px;
margin: 5px;
background-color: #f5f5f5;
border: 1px solid #888888;
}
.card { .card {
border-radius: 8px; border-radius: 8px;
padding: 5px; padding: 5px;

View File

@ -37,8 +37,6 @@ bricks.dom_on_off_observer=new MutationObserver((mutations)=>{
} }
} }
}); });
bricks.resize_observer.observe(document.body,
{ childList: true, subtree: true });
bricks.dom_on_off_observer.observe(document.body, bricks.dom_on_off_observer.observe(document.body,
{ childList: true, subtree: true }); { childList: true, subtree: true });
function addParamsToUrl(url, params, widget) { function addParamsToUrl(url, params, widget) {

View File

@ -41,6 +41,7 @@ bricks.JsWidget = class {
if (this.bgimage){ if (this.bgimage){
this.set_bg_image(this.bgimage); this.set_bg_image(this.bgimage);
} }
bricks.resize_observer.observe(this.dom_element);
} }
set_bg_image(url){ set_bg_image(url){
var d = this.dom_element; var d = this.dom_element;