🎨 Clean code

This commit is contained in:
Daniel 2024-04-23 13:29:32 +08:00
parent 7da3dec244
commit e082ce983d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 17 additions and 18 deletions

View file

@ -191,11 +191,11 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}
viewData = item;
}
});
let avBackground = '--av-background:var(--b3-theme-background)'
let avBackground = "--av-background:var(--b3-theme-background)";
if (e.style.backgroundColor) {
avBackground = '--av-background:' + e.style.backgroundColor
avBackground = "--av-background:" + e.style.backgroundColor;
} else if (hasClosestByAttribute(e, "data-type", "NodeBlockQueryEmbed")) {
avBackground = '--av-background:var(--b3-theme-surface)'
avBackground = "--av-background:var(--b3-theme-surface)";
}
e.firstElementChild.outerHTML = `<div class="av__container" style="${avBackground}">
<div class="av__header">