diff --git a/repo/calendar-scroll/mod.js b/repo/calendar-scroll/mod.js index 0e296d9..9925117 100644 --- a/repo/calendar-scroll/mod.js +++ b/repo/calendar-scroll/mod.js @@ -13,7 +13,7 @@ module.exports = { tags: ['extension'], name: 'calendar scroll', desc: - 'add a button to scroll down to the current week in fullpage/infinite-scroll calendars', + 'add a button to scroll down to the current week in fullpage/infinite-scroll calendars.', version: '0.1.0', author: 'dragonwocky', hacks: { diff --git a/repo/core/buttons.js b/repo/core/buttons.js index 376f1b4..b32f84c 100644 --- a/repo/core/buttons.js +++ b/repo/core/buttons.js @@ -15,7 +15,7 @@ module.exports = (store) => { buttons = { element: helpers.createElement('
'), insert: [ - ...((store('mods')['72886371-dada-49a7-9afc-9f275ecf29d3'] || {}) + ...((store('mods', {})['72886371-dada-49a7-9afc-9f275ecf29d3'] || {}) .enabled ? ['alwaysontop'] : []), diff --git a/repo/core/css/theme.css b/repo/core/css/theme.css index ff53d7a..ff38b69 100644 --- a/repo/core/css/theme.css +++ b/repo/core/css/theme.css @@ -39,7 +39,8 @@ [style*='pointer-events:'][style*='max-width: 100%; width: 900px'] { width: var(--theme--page_normal-width) !important; } -.notion-page-content [style*='max-width: 696px'] { + +.notion-page-content [data-block-id][style*='max-width'] { max-width: 100% !important; } .notion-frame @@ -51,12 +52,18 @@ [style*='pointer-events:'][style*='max-width: 100%; width: 100%'] { width: var(--theme--page_full-width) !important; } +.notion-text-block [style*='padding-left: 1.5em'], .notion-frame .notion-scroller [style*='padding-left: 136.5px;'] { padding-left: 0 !important; } .notion-frame .notion-scroller [style*='padding-right: 136.5px;'] { padding-right: 0 !important; } +.notion-collection_view-block > :first-child, +.notion-collection_view-block .notion-scroller > :first-child { + padding-left: 0 !important; + padding-right: 0 !important; +} .notion-peek-renderer .notion-scroller.vertical diff --git a/repo/right-to-left/mod.js b/repo/right-to-left/mod.js index a9592fe..270669a 100644 --- a/repo/right-to-left/mod.js +++ b/repo/right-to-left/mod.js @@ -48,7 +48,7 @@ module.exports = { function autoAlignPageContent() { document .querySelectorAll( - '.notion-page-content > div[data-block-id]:not([dir])' + '.notion-page-content > div[data-block-id]:not([dir]), [placeholder="Untitled"]:not([dir])' ) .forEach((block) => block.setAttribute('dir', 'auto')); document diff --git a/repo/word-counter/styles.css b/repo/word-counter/styles.css index 434642e..c7b7700 100644 --- a/repo/word-counter/styles.css +++ b/repo/word-counter/styles.css @@ -15,6 +15,7 @@ } #word-counter-details > div > p { margin: 0.5em; + cursor: pointer; font-size: var(--theme--font_label-size); color: var(--theme--text); border-radius: 3px;