made obsidian forum the topmost preset

This commit is contained in:
Ell 2022-03-26 16:11:30 +01:00
parent e2ce193353
commit 88aee30476
2 changed files with 9 additions and 9 deletions

View file

@ -12,8 +12,8 @@ To use this plugin, simply go into its settings and add a new frame, either from
## Presets ## Presets
By default, Custom Frames comes with a few presets that allow you to get new panes for popular sites up and running quickly. 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](https://keep.google.com), optimized for a narrow pane on the side
- [Obsidian Forum](https://forum.obsidian.md/) - [Obsidian Forum](https://forum.obsidian.md/)
- [Google Keep](https://keep.google.com), optimized for a narrow pane on the side
- [Notion](https://www.notion.so/) (it's recommended to close Notion's sidebar if used as a side pane) - [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#L7). 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).

16
main.ts
View file

@ -5,6 +5,14 @@ const defaultSettings: CustomFramesSettings = {
padding: 5 padding: 5
}; };
const presets: Record<string, CustomFrame> = { const presets: Record<string, CustomFrame> = {
"obsidian": {
url: "https://forum.obsidian.md/",
displayName: "Obsidian Forum",
icon: "edit",
hideOnMobile: true,
minimumWidth: 367,
customCss: ""
},
"keep": { "keep": {
url: "https://keep.google.com", url: "https://keep.google.com",
displayName: "Google Keep", displayName: "Google Keep",
@ -16,14 +24,6 @@ const presets: Record<string, CustomFrame> = {
display: none !important; display: none !important;
}` }`
}, },
"obsidian": {
url: "https://forum.obsidian.md/",
displayName: "Obsidian Forum",
icon: "edit",
hideOnMobile: true,
minimumWidth: 367,
customCss: ""
},
"notion": { "notion": {
url: "https://www.notion.so/", url: "https://www.notion.so/",
displayName: "Notion", displayName: "Notion",