mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
73e2ce44e9
commit
c6d2d629e8
16 changed files with 98 additions and 78 deletions
|
|
@ -4,7 +4,7 @@ import {Constants} from "../../../constants";
|
|||
import {addDragFill, renderCell} from "./cell";
|
||||
import {unicode2Emoji} from "../../../emoji";
|
||||
import {focusBlock} from "../../util/selection";
|
||||
import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName} from "../../util/hasClosest";
|
||||
import {hasClosestBlock, hasClosestByClassName, isInEmbedBlock} from "../../util/hasClosest";
|
||||
import {stickyRow, updateHeader} from "./row";
|
||||
import {getCalcValue} from "./calc";
|
||||
import {renderAVAttribute} from "./blockAttr";
|
||||
|
|
@ -206,7 +206,7 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}
|
|||
let avBackground = "--av-background:var(--b3-theme-background)";
|
||||
if (e.style.backgroundColor) {
|
||||
avBackground = "--av-background:" + e.style.backgroundColor;
|
||||
} else if (hasClosestByAttribute(e, "data-type", "NodeBlockQueryEmbed")) {
|
||||
} else if (isInEmbedBlock(e)) {
|
||||
avBackground = "--av-background:var(--b3-theme-surface)";
|
||||
}
|
||||
e.firstElementChild.outerHTML = `<div class="av__container" style="${avBackground}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue