From ded579f2db07bdaa2f6b78e20c39f25de393ab53 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 27 Dec 2024 15:19:54 +0200 Subject: [PATCH] toolbar below content: move permissions popups upwards if needed At least on linux permissions-popup and notification-popup panels don't get side=bottom attribute so the open downwards which causes them to be drawn outside of screen. Fixes #493 --- chrome/navbar_below_content.css | 12 ++++++++++-- chrome/toolbars_below_content_v2.css | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/chrome/navbar_below_content.css b/chrome/navbar_below_content.css index 30a3b5e..e450b70 100644 --- a/chrome/navbar_below_content.css +++ b/chrome/navbar_below_content.css @@ -37,5 +37,13 @@ See the above repository for updates as well as full license text. */ } .urlbarView-body-inner{ border-top-style: none !important; } - -} \ No newline at end of file + + @media (-moz-platform: linux){ + #notification-popup[side="top"]{ + margin-top: calc(-2 * var(--panel-padding-block) - 40px - 32px - 8.5em) !important; + } + #permission-popup[side="top"]{ + margin-top: calc(-2 * var(--panel-padding-block) - 2.5em); + } + } +} diff --git a/chrome/toolbars_below_content_v2.css b/chrome/toolbars_below_content_v2.css index ee3554a..4a8a3f0 100644 --- a/chrome/toolbars_below_content_v2.css +++ b/chrome/toolbars_below_content_v2.css @@ -37,6 +37,12 @@ See the above repository for updates as well as full license text. */ opacity: 1 !important; will-change: unset !important; } + #notification-popup[side="top"]{ + margin-top: calc(-2 * var(--panel-padding-block) - 40px - 32px - 8.5em) !important; + } + #permission-popup[side="top"]{ + margin-top: calc(-2 * var(--panel-padding-block) - 2.5em); + } } #nav-bar,