fixed more options not displaying in sidebar tabs

Closes #66
This commit is contained in:
Ell 2023-01-30 11:55:45 +01:00
parent 72c14f63d7
commit 2363a5e338
9 changed files with 706 additions and 1356 deletions

1385
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -58,14 +58,12 @@ export class CustomFrameView extends ItemView {
onPaneMenu(menu: Menu, source: string): void { onPaneMenu(menu: Menu, source: string): void {
super.onPaneMenu(menu, source); super.onPaneMenu(menu, source);
if (source == "tab-header") { for (let action of CustomFrameView.actions) {
for (let action of CustomFrameView.actions) { menu.addItem(i => {
menu.addItem(i => { i.setTitle(action.name);
i.setTitle(action.name); i.setIcon(action.icon);
i.setIcon(action.icon); i.onClick(() => action.action(this));
i.onClick(() => action.action(this)); });
});
}
} }
} }

View file

@ -1 +1,3 @@
{} {
"promptDelete": false
}

View file

@ -0,0 +1,29 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"outgoing-link": true,
"tag-pane": true,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"starred": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false,
"canvas": true
}

View file

@ -4,6 +4,7 @@
"switcher", "switcher",
"graph", "graph",
"backlink", "backlink",
"canvas",
"outgoing-link", "outgoing-link",
"tag-pane", "tag-pane",
"page-preview", "page-preview",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,10 @@
{
"id": "obsidian-custom-frames",
"name": "Custom Frames",
"version": "2.4.4",
"minAppVersion": "0.14.5",
"description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
"author": "Ellpeck",
"authorUrl": "https://ellpeck.de",
"isDesktopOnly": false
}

View file

@ -0,0 +1,31 @@
.custom-frames-view {
padding: 0 !important;
overflow: hidden !important;
}
.custom-frames-view-file {
padding: 0;
overflow: auto;
}
.custom-frames-frame {
width: 100%;
height: 100%;
border: none;
background-color: white;
background-clip: content-box;
}
.custom-frames-add {
margin-left: 10px;
}
.custom-frames-show {
margin-bottom: 18px;
}
.custom-frames-support {
max-width: 50%;
width: 400px;
height: auto;
}