From d005e3f3acb49cf01bd447f7040898f222b81e06 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 16 Sep 2023 12:23:47 -0400 Subject: [PATCH] [mv3] Fix glitchy popup panel when width increases Related issue: https://github.com/uBlockOrigin/uBOL-home/issues/66 --- platform/mv3/extension/css/popup.css | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/platform/mv3/extension/css/popup.css b/platform/mv3/extension/css/popup.css index 3b039ffdb..385a05165 100644 --- a/platform/mv3/extension/css/popup.css +++ b/platform/mv3/extension/css/popup.css @@ -4,10 +4,6 @@ top: -20%; } -/* Internal CSS values */ -:root body { - overflow: hidden; - } :root body, :root.mobile body { --font-size: 14px; @@ -19,6 +15,7 @@ --popup-rule-cell-width: 5em; font-size: var(--font-size); line-height: 20px; + min-width: 100%; } :root body.loading { opacity: 0; @@ -37,7 +34,7 @@ a { display: flex; flex-direction: column; max-width: 340px; - min-width: var(--popup-main-min-width); + min-width: 100%; } :root.portrait #main { align-self: inherit; @@ -277,10 +274,3 @@ body:not([data-section~="b"]) [data-section="b"] { #templates { display: none; } - -@media (max-width: 480px) { - #main { - max-width: 100vw; - width: 100vw; - } -}