From 7b91dbcd85f688caf5362b86e8ad5d5831f3ee6d Mon Sep 17 00:00:00 2001 From: CloudHill Date: Thu, 10 Dec 2020 18:15:25 +0700 Subject: [PATCH] fix scroll-db_toolbars tweak's selectors stops unrelated elements from being selected --- repo/tweaks/app.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/repo/tweaks/app.css b/repo/tweaks/app.css index 3f2ccfe..6811304 100644 --- a/repo/tweaks/app.css +++ b/repo/tweaks/app.css @@ -54,11 +54,9 @@ margin-bottom: -1.5px !important; } -[data-tweaks*='[scroll_db_toolbars]'] .notion-frame > .notion-scroller > [style*="overflow: visible;"], -[data-tweaks*='[scroll_db_toolbars]'] .notion-page-content .notion-collection_view-block > :first-child { - overflow-x: auto !important; +[data-tweaks*='[scroll_db_toolbars]'] .notion-collection_view-block > [style*=" height: 42px"] { + overflow-x: auto !important; } -[data-tweaks*='[scroll_db_toolbars]'] .notion-frame > .notion-scroller > [style*="overflow: visible;"]::-webkit-scrollbar, -[data-tweaks*='[scroll_db_toolbars]'] .notion-page-content .notion-collection_view-block > :first-child::-webkit-scrollbar { - display: none; +[data-tweaks*='[scroll_db_toolbars]'] .notion-collection_view-block > [style*=" height: 42px"]::-webkit-scrollbar { + display: none; }