From 5bd5a75061386cd56c299488d94edb86080816c8 Mon Sep 17 00:00:00 2001 From: EdHout <92811706+EdHout@users.noreply.github.com> Date: Sat, 2 Apr 2022 15:18:38 +0200 Subject: [PATCH] Added todoist preset (#15) * Added todoist preset * Fixed literal indenting * Added todoist --- README.md | 1 + src/settings.ts | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/README.md b/README.md index dc8fbef..9632e33 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ By default, Custom Frames comes with a few presets that allow you to get new pan - [Obsidian Forum](https://forum.obsidian.md/) - [Google Keep](https://keep.google.com), optimized for a narrow pane on the side - [Google Calendar](https://calendar.google.com/calendar/u/0/r/day), optimized by removing some buttons. Close side panel with top-left button. +- [Todoist](https://todoist.com), optimized for a narrow (half-height) side panel by removing some buttons and slimming margins. - [Notion](https://www.notion.so/) (it's recommended to close Notion's sidebar if used as a side pane) - [Twitter](https://twitter.com) diff --git a/src/settings.ts b/src/settings.ts index 742a927..942b814 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -39,6 +39,30 @@ div.dwlvNd { display: none !important; }` }, + "todoist": { + url: "https://todoist.com", + displayName: "Todoist", + icon: "list-checks", + hideOnMobile: true, + minimumWidth: 350, + customCss: `/* hide the help, home, search, and productivity overview buttons, create extra space, and prevent toast pop-up from acting weird */ +[aria-label="Go to Home view"], #quick_find, [aria-label="Productivity"], [aria-label="Help & Feedback"] { + display: none !important; +} + +.view_content { + padding-left: 15px; +} + +.view_header { + padding-left: 15px; + padding-top: 10px; +} + +.undo_toast { + width: 95%; +}` + }, "notion": { url: "https://www.notion.so/", displayName: "Notion",