From 2ceb4bc48ee2cffc73c95e2522e6601a4b128575 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 26 Mar 2022 15:35:09 +0100 Subject: [PATCH] added notion and obsidian forum presets --- README.md | 6 ++++-- main.ts | 20 ++++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0d351d8..3374c01 100644 --- a/README.md +++ b/README.md @@ -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~~ diff --git a/main.ts b/main.ts index 2dde86e..46d21ae 100644 --- a/main.ts +++ b/main.ts @@ -9,12 +9,28 @@ const presets: Record = { 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 {