property-layout finally working regardless of banner

This commit is contained in:
dragonwocky 2020-08-29 02:09:04 +10:00
parent ffa35c74ae
commit 9d79f7462f
2 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@ module.exports = {
tags: ['extension'], tags: ['extension'],
name: 'property layout', name: 'property layout',
desc: 'auto-collapse page properties that usually push down page content.', desc: 'auto-collapse page properties that usually push down page content.',
version: '0.2.2', version: '0.2.3',
author: 'alexander-kazakov', author: 'alexander-kazakov',
hacks: { hacks: {
'renderer/preload.js'(store, __exports) { 'renderer/preload.js'(store, __exports) {
@ -30,7 +30,7 @@ module.exports = {
function process(list) { function process(list) {
queue = []; queue = [];
let properties = document.querySelector( 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 ( if (
properties && properties &&

View File

@ -20,6 +20,9 @@
border-radius: 2px; border-radius: 2px;
transition: background 200ms; transition: background 200ms;
} }
.notion-scroller.vertical > div > :first-child .propertylayout-toggle {
margin-top: 1em;
}
.propertylayout-toggle[data-action='show'] { .propertylayout-toggle[data-action='show'] {
margin-bottom: 1em; margin-bottom: 1em;
} }