Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick: database link

Vanessa164478def5dc
diff --git a/app/src/protyle/render/av/asset.ts b/app/src/protyle/render/av/asset.ts
index ef640d279e..d7af78a76a 100644
--- a/app/src/protyle/render/av/asset.ts
+++ b/app/src/protyle/render/av/asset.ts
@@ -225,7 +225,9 @@ export const editAssetItem = (protyle: IProtyle, data: IAV, cellElements: HTMLEl
if (type === "file") {
menu.addItem({
iconHTML: "",
- label: `<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field"></textarea>`,
+ type: "readonly",
+ label: `<div class="b3-menu__label">${window.siyuan.languages.title}</div>
+<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field"></textarea>`,
});
} else {
menu.addItem({
@@ -293,11 +295,12 @@ export const addAssetLink = (protyle: IProtyle, data: IAV, cellElements: HTMLEle
}
menu.addItem({
iconHTML: "",
- label: `<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field" placeholder="${window.siyuan.languages.link}"></textarea>`,
- });
- menu.addItem({
- iconHTML: "",
- label: `<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field" placeholder="${window.siyuan.languages.title}"></textarea>`,
+ type: "readonly",
+ label: `<div class="b3-menu__label">${window.siyuan.languages.link}</div>
+<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field"></textarea>
+<div class="fn__hr"></div>
+<div class="b3-menu__label">${window.siyuan.languages.title}</div>
+<textarea style="width: ${isMobile() ? "200" : "360"}px;margin: 4px 0;" rows="1" class="b3-text-field"></textarea>`,
});
const rect = target.getBoundingClientRect();
menu.open({