From 05c7ca099fb24ee0cab14f43a6cba39f37a07da1 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Tue, 18 Aug 2020 21:44:41 +1000 Subject: [PATCH] property layout width fixed for fullpage pages --- repo/property-layout/styles.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repo/property-layout/styles.css b/repo/property-layout/styles.css index dcff5ae..da7c877 100644 --- a/repo/property-layout/styles.css +++ b/repo/property-layout/styles.css @@ -10,7 +10,7 @@ } .propertylayout-toggle { - width: calc(100% - (2 * var(--theme--preview-padding))); + width: calc(100% - (2 * (96px + env(safe-area-inset-left)))); text-align: left; font-size: 0.85em; margin-bottom: 1em; @@ -21,6 +21,12 @@ border-radius: 2px; transition: background 200ms; } +[style*='width: 900px'] + .propertylayout-toggle { + width: calc(900px - (2 * (96px + env(safe-area-inset-left)))); +} +.notion-peek-renderer .propertylayout-toggle { + width: calc(100% - (2 * var(--theme--preview-padding))); +} .propertylayout-toggle:hover { background: var(--theme--interactive_hover); }