فهرست منبع

:art: fix https://github.com/siyuan-note/siyuan/issues/8037

Vanessa 2 سال پیش
والد
کامیت
617409127a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/src/protyle/hint/index.ts

+ 1 - 1
app/src/protyle/hint/index.ts

@@ -469,7 +469,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
                 }, response => {
                     protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {
                         type: "id",
-                        color: `${response.data}${Constants.ZWSP}${fileNames.length === 2 ? "s" : "d"}${Constants.ZWSP}${(fileNames.length === 2 ? fileNames[0] : realFileName).substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen)}`
+                        color: `${response.data}${Constants.ZWSP}${(fileNames.length === 2 || refIsS) ? "s" : "d"}${Constants.ZWSP}${(fileNames.length === 2 ? fileNames[0] : realFileName).substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen)}`
                     });
                 });
             });