Skip to content

Commit

Permalink
fixed centered views having weird behavior with tabs
Browse files Browse the repository at this point in the history
closes #67
  • Loading branch information
Ellpeck committed May 7, 2023
1 parent 21a8230 commit 3ffe20f
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/view.ts
Expand Up @@ -45,6 +45,7 @@ export class CustomFrameView extends ItemView {
this.data = data;
this.name = name;
this.frame = new CustomFrame(settings, data);
this.navigation = data.openInCenter;

for (let action of CustomFrameView.actions)
this.addAction(action.icon, action.name, () => action.action(this));
Expand Down
3 changes: 2 additions & 1 deletion test-vault/.obsidian/core-plugins-migration.json
Expand Up @@ -25,5 +25,6 @@
"file-recovery": true,
"publish": false,
"sync": false,
"canvas": true
"canvas": true,
"bookmarks": true
}
2 changes: 1 addition & 1 deletion test-vault/.obsidian/core-plugins.json
Expand Up @@ -13,7 +13,7 @@
"note-composer",
"command-palette",
"editor-status",
"starred",
"bookmarks",
"outline",
"word-count",
"file-recovery"
Expand Down
22 changes: 22 additions & 0 deletions test-vault/.obsidian/graph.json
@@ -0,0 +1,22 @@
{
"collapse-filter": true,
"search": "",
"showTags": false,
"showAttachments": false,
"hideUnresolved": false,
"showOrphans": true,
"collapse-color-groups": true,
"colorGroups": [],
"collapse-display": true,
"showArrow": false,
"textFadeMultiplier": 0,
"nodeSizeMultiplier": 1,
"lineSizeMultiplier": 1,
"collapse-forces": true,
"centerStrength": 0.518713248970312,
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 1,
"close": false
}
2 changes: 2 additions & 0 deletions test-vault/.obsidian/plugins/obsidian-custom-frames/main

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions test-vault/.obsidian/plugins/obsidian-custom-frames/main.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions test-vault/Untitled.canvas
@@ -0,0 +1,6 @@
{
"nodes":[
{"id":"98d23d47aafe2b68","x":-480,"y":-360,"width":795,"height":535,"type":"link","url":"https://calendar.google.com"}
],
"edges":[]
}

0 comments on commit 3ffe20f

Please sign in to comment.