From 9f66acccd8dbfbd1928278fff0127afb36dcc52e Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Sat, 29 Aug 2020 02:09:04 +1000 Subject: [PATCH] property-layout finally working regardless of banner --- CHANGELOG.md | 5 +++++ mods/property-layout/mod.js | 4 ++-- mods/property-layout/styles.css | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4beed6d..f23dd21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - [improved responsiveness](https://chrome.google.com/webstore/detail/notion%20%20-responsiveness-f/leadcilhbmibbkgbnjgmmnfgnnhmeddk) - [highlight/mark viewer](https://chrome.google.com/webstore/detail/notion%2B-mark-manager/hipgmnlpnimedfepbfbfiaobohhffcfc) +### v0.8.4 (2020-08-29) + +- bugfix: property-layout now works consistently with or without a banner. + ### v0.8.3 (2020-08-29) previous release was a mistake: it did as intended on linux, but broke windows. @@ -28,6 +32,7 @@ a clarity and stability update. - bugfix: property-layout extension had been broken by internal notion changes. - bugfix: linux installer path typo. - bugfix: caret-color was being mistaken for color and block-level text colouring was broken. +- improved: auto-application on install. ### v0.8.0 (2020-08-27) diff --git a/mods/property-layout/mod.js b/mods/property-layout/mod.js index 6df88c4..ab3c16b 100644 --- a/mods/property-layout/mod.js +++ b/mods/property-layout/mod.js @@ -12,7 +12,7 @@ module.exports = { tags: ['extension'], name: 'property layout', desc: 'auto-collapse page properties that usually push down page content.', - version: '0.2.2', + version: '0.2.3', author: 'alexander-kazakov', hacks: { 'renderer/preload.js'(store, __exports) { @@ -30,7 +30,7 @@ module.exports = { function process(list) { queue = []; let properties = document.querySelector( - '.notion-scroller.vertical > div > div:nth-child(2) [style="width: 100%; font-size: 14px;"]' + '.notion-scroller.vertical > :first-child [style="width: 100%; font-size: 14px;"]' ); if ( properties && diff --git a/mods/property-layout/styles.css b/mods/property-layout/styles.css index 60580be..e058aa5 100644 --- a/mods/property-layout/styles.css +++ b/mods/property-layout/styles.css @@ -20,6 +20,9 @@ border-radius: 2px; transition: background 200ms; } +.notion-scroller.vertical > div > :first-child .propertylayout-toggle { + margin-top: 1em; +} .propertylayout-toggle[data-action='show'] { margin-bottom: 1em; }