Skip to content

Commit

Permalink
🐛 fix: 从书签打开的文档,右上角显示”退出聚焦“ close #37
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Dec 30, 2024
1 parent a833e12 commit 6c01ba0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sy-bookmark-plus",
"version": "1.5.0",
"version": "1.5.1",
"type": "module",
"description": "A more powerful bookmark",
"repository": "",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 3 additions & 8 deletions src/components/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,9 @@ const Item: Component<IProps> = (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: {
Expand Down

0 comments on commit 6c01ba0

Please sign in to comment.