Vanessa 2024-04-22 14:55:18 +08:00
parent d38b224bd0
commit b20ba85949

View file

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