Skip to content

Commit

Permalink
🎨 fix #9370
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 9, 2023
1 parent faadbf5 commit 803069d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/menus/commonMenuItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
</label>
${notifyHTML}
</div>
<div data-type="NodeAttributeView" class="fn__none custom-attr" data-av-id="${attrs["custom-avs"]}" data-node-id="${attrs.id}"></div>
<div data-type="NodeAttributeView" class="fn__none custom-attr"></div>
<div data-type="custom" class="fn__none custom-attr">
${customHTML}
<div class="b3-label">
Expand Down
3 changes: 2 additions & 1 deletion app/src/protyle/render/av/blockAttr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle?: IP
avID: string
avName: string
}) => {
html += `<div class="block__logo custom-attr__avheader">
html += `<div data-av-id="${table.avID}" data-node-id="${id}" data-type="NodeAttributeView"><div class="block__logo custom-attr__avheader">
<svg><use xlink:href="#iconDatabase"></use></svg>
<span>${table.avName || window.siyuan.languages.database}</span>
</div>`;
Expand All @@ -93,6 +93,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "templat
</div>
</div>`;
});
html += "</div>";
});
element.innerHTML = html;
element.addEventListener("click", (event) => {
Expand Down

0 comments on commit 803069d

Please sign in to comment.