From 4183ce477a45f2e8217b0e8045c25482a2f93c07 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 9 Dec 2023 17:54:02 -0500 Subject: [PATCH] Fix popup panel rendering when embedded in logger Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3015 --- src/css/logger-ui.css | 2 +- src/css/popup-fenix.css | 2 +- src/js/popup-fenix.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/css/logger-ui.css b/src/css/logger-ui.css index ea3098d93..90460d2b1 100644 --- a/src/css/logger-ui.css +++ b/src/css/logger-ui.css @@ -488,7 +488,7 @@ body[dir="rtl"] .closeButton { border: 1px solid gray; bottom: 0; display: none; - max-height: 70vh; + max-height: min(800px, calc(100vh - 2rem)); min-width: 360px; overflow: hidden; position: fixed; diff --git a/src/css/popup-fenix.css b/src/css/popup-fenix.css index a1e839e9d..252e371e0 100644 --- a/src/css/popup-fenix.css +++ b/src/css/popup-fenix.css @@ -736,7 +736,7 @@ body:not([data-more*="e"]) [data-more="e"] { min-width: unset; overflow-y: hidden; } -:root.portrait #firewall-vspacer { +:root.portrait body[data-more*="e"] #firewall-vspacer { display: block; } diff --git a/src/js/popup-fenix.js b/src/js/popup-fenix.js index 0ce3ae3f1..b44b923b9 100644 --- a/src/js/popup-fenix.js +++ b/src/js/popup-fenix.js @@ -1479,6 +1479,7 @@ const getPopupData = async function(tabId, first = false) { selfURL.searchParams.get('portrait') ) { dom.cl.add(dom.root, 'portrait'); + dom.cl.remove(dom.root, 'desktop'); } else if ( dom.cl.has(dom.root, 'desktop') ) { await nextFrames(8); const main = qs$('#main');