🎨 tag rename

This commit is contained in:
Vanessa 2025-04-29 11:31:22 +08:00
parent 7c1bec64f2
commit c62e178652

View File

@ -18,7 +18,7 @@ export const renameTag = (labelName: string) => {
const dialog = new Dialog({
title: window.siyuan.languages.rename,
content: `<div class="b3-dialog__content">
<input class="b3-text-field fn__block" value="${labelName}">
<input class="b3-text-field fn__block">
<div class="b3-list fn__flex-1 b3-list--background fn__none protyle-hint" style=" position: absolute;
width: calc(100% - 48px);">
<img style="margin: 0 auto;display: block;width: 64px;height: 64px" src="/stage/loading-pure.svg">
@ -47,6 +47,7 @@ export const renameTag = (labelName: string) => {
});
});
const inputElement = dialog.element.querySelector("input");
inputElement.value = labelName;
inputElement.focus();
inputElement.select();
const listElement = dialog.element.querySelector(".b3-list--background");