mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 https://github.com/siyuan-note/siyuan/issues/15388 分组行重复时块标高亮错位
This commit is contained in:
parent
f0280bc537
commit
7e7acf27cf
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ export const initUI = (protyle: IProtyle) => {
|
||||||
}
|
}
|
||||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${buttonElement.getAttribute("data-node-id")}"]`)).find(item => {
|
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${buttonElement.getAttribute("data-node-id")}"]`)).find(item => {
|
||||||
if (!isInEmbedBlock(item) && protyle.gutter.isMatchNode(item)) {
|
if (!isInEmbedBlock(item) && protyle.gutter.isMatchNode(item)) {
|
||||||
const bodyQueryClass = buttonElement.dataset.groupId ? `.av__body[data-group-id="${buttonElement.dataset.groupId}"] ` : "";
|
const bodyQueryClass = (buttonElement.dataset.groupId && buttonElement.dataset.groupId !== "undefined") ? `.av__body[data-group-id="${buttonElement.dataset.groupId}"] ` : "";
|
||||||
const rowItem = item.querySelector(bodyQueryClass + `.av__row[data-id="${buttonElement.dataset.rowId}"]`);
|
const rowItem = item.querySelector(bodyQueryClass + `.av__row[data-id="${buttonElement.dataset.rowId}"]`);
|
||||||
Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--hl, .av__row--hl")).forEach(hlItem => {
|
Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--hl, .av__row--hl")).forEach(hlItem => {
|
||||||
if (item !== hlItem) {
|
if (item !== hlItem) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue