mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-25 02:38:33 +01:00
added notion and obsidian forum presets
This commit is contained in:
parent
fc6bea2f50
commit
2ceb4bc48e
2 changed files with 22 additions and 4 deletions
|
@ -12,9 +12,11 @@ To use this plugin, simply go into its settings and add a new frame, either from
|
|||
|
||||
## Presets
|
||||
By default, Custom Frames comes with a few presets that allow you to get new panes for popular sites up and running quickly.
|
||||
- Google Keep, optimized for a narrow pane on the side
|
||||
- [Google Keep](https://keep.google.com), optimized for a narrow pane on the side
|
||||
- [Obsidian Forum](https://forum.obsidian.md/)
|
||||
- [Notion](https://www.notion.so/) (it's recommended to close Notion's sidebar if used as a side pane)
|
||||
|
||||
If you create a frame that you think other people would like, don't hesitate to create a pull request with [a new preset](https://github.com/Ellpeck/ObsidianCustomFrames/blob/master/main.ts#L8).
|
||||
If you create a frame that you think other people would like, don't hesitate to create a pull request with [a new preset](https://github.com/Ellpeck/ObsidianCustomFrames/blob/master/main.ts#L7).
|
||||
|
||||
## Roadmap
|
||||
- ~~Allow setting a custom icon for each pane~~
|
||||
|
|
20
main.ts
20
main.ts
|
@ -9,12 +9,28 @@ const presets: Record<string, CustomFrame> = {
|
|||
url: "https://keep.google.com",
|
||||
displayName: "Google Keep",
|
||||
icon: "files",
|
||||
hideOnMobile: false,
|
||||
hideOnMobile: true,
|
||||
minimumWidth: 370,
|
||||
customCss: `/* hide the menu bar and the "Keep" text */
|
||||
.PvRhvb-qAWA2, .gb_2d.gb_Zc {
|
||||
display: none !important;
|
||||
}`
|
||||
},
|
||||
"obsidian": {
|
||||
url: "https://forum.obsidian.md/",
|
||||
displayName: "Obsidian Forum",
|
||||
icon: "edit",
|
||||
hideOnMobile: true,
|
||||
minimumWidth: 367,
|
||||
customCss: ""
|
||||
},
|
||||
"notion": {
|
||||
url: "https://www.notion.so/",
|
||||
displayName: "Notion",
|
||||
icon: "box",
|
||||
hideOnMobile: true,
|
||||
minimumWidth: 400,
|
||||
customCss: ""
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -274,7 +290,7 @@ class CustomFramesSettingTab extends PluginSettingTab {
|
|||
icon: "",
|
||||
minimumWidth: 0,
|
||||
customCss: "",
|
||||
hideOnMobile: false
|
||||
hideOnMobile: true
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue