From cee183966b6b4f7917194a789dd5a425ec7725d1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 16 Oct 2025 17:56:23 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16087 --- app/src/protyle/util/onGet.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index 4c5206946..ad681c3d2 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -80,6 +80,13 @@ export const onGet = (options: { if (options.protyle.options.render.title && options.protyle.title.element.getAttribute("data-render") !== "true") { // 文档A的大纲,关闭文档A后,点击大纲无法渲染头部 } else if (options.action.includes(Constants.CB_GET_APPEND) || options.action.includes(Constants.CB_GET_BEFORE) || options.action.includes(Constants.CB_GET_HTML)) { + if (options.protyle.options.render.title && options.protyle.options.render.hideTitleOnZoom) { + if (options.protyle.block.showAll) { + options.protyle.title.element.classList.add("fn__none"); + } else { + options.protyle.title.element.classList.remove("fn__none"); + } + } // 防止动态加载加载过多的内容 setHTML({ content: options.data.data.content,