mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
🎨 Clean code
This commit is contained in:
parent
7da3dec244
commit
e082ce983d
6 changed files with 17 additions and 18 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue