diff --git a/package.json b/package.json index 9ae1622..79e03c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sy-bookmark-plus", - "version": "1.5.0", + "version": "1.5.1", "type": "module", "description": "A more powerful bookmark", "repository": "", diff --git a/plugin.json b/plugin.json index 0bf1d8f..4c38c0c 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "name": "sy-bookmark-plus", "author": "frostime", "url": "https://github.com/frostime/sy-bookmark-plus", - "version": "1.5.0", + "version": "1.5.1", "minAppVersion": "3.0.12", "backends": [ "all" diff --git a/src/components/item.tsx b/src/components/item.tsx index 9a8115e..8c4cbf8 100644 --- a/src/components/item.tsx +++ b/src/components/item.tsx @@ -270,14 +270,9 @@ const Item: Component = (props) => { openMobileFileById(plugin.app, item().id); } else { let zoomIn = configRef().zoomInWhenClick; - // if (item().type === 'd') { - // zoomIn = false; - // } else { - // let block = await getBlockByID(item().id); - // let root_id = block.root_id; - // let protyle = document.querySelector(`.protyle-title[data-node-id="${root_id}"]`); - // if (protyle) zoomIn = false; //如果文档已经打开了,就直接调整不聚焦 - // } + if (item().type === 'd') { + zoomIn = false; + } openTab({ app: plugin.app, doc: {