mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 08:54:07 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/15388 分组行重复时块标高亮错位
This commit is contained in:
parent
96346a94ad
commit
d7aa181eb9
2 changed files with 5 additions and 3 deletions
|
|
@ -224,7 +224,8 @@ export const initUI = (protyle: IProtyle) => {
|
|||
}
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${buttonElement.getAttribute("data-node-id")}"]`)).find(item => {
|
||||
if (!isInEmbedBlock(item) && protyle.gutter.isMatchNode(item)) {
|
||||
const rowItem = item.querySelector(`.av__row[data-id="${buttonElement.dataset.rowId}"]`);
|
||||
const bodyQueryClass = buttonElement.dataset.groupId ? `.av__body[data-group-id="${buttonElement.dataset.groupId}"] ` : "";
|
||||
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 => {
|
||||
if (item !== hlItem) {
|
||||
hlItem.classList.remove("protyle-wysiwyg--hl");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue