From 2f991bf70b3770a7f1e4ba92c41777e3f68b3e0d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 14 Jun 2023 09:06:13 -0400 Subject: [PATCH] [mv3] Fix various minor quirks Related issue: - /~https://github.com/uBlockOrigin/uBOL-issues/issues/46 Also, patch Unicode flags in popup panel. --- platform/mv3/extension/css/dashboard.css | 2 +- platform/mv3/extension/css/popup.css | 1 - platform/mv3/extension/js/popup.js | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/mv3/extension/css/dashboard.css b/platform/mv3/extension/css/dashboard.css index 5a758f3c33871..4dded0f10bbb8 100644 --- a/platform/mv3/extension/css/dashboard.css +++ b/platform/mv3/extension/css/dashboard.css @@ -59,7 +59,7 @@ iframe { border: 0; flex-grow: 1; margin: 0; - min-height: 800px; + min-height: 600px; padding: 0; } #unsavedWarning { diff --git a/platform/mv3/extension/css/popup.css b/platform/mv3/extension/css/popup.css index 815717496236c..fd2852ccbf945 100644 --- a/platform/mv3/extension/css/popup.css +++ b/platform/mv3/extension/css/popup.css @@ -131,7 +131,6 @@ body.needReload #refresh { font-size: 1em; font-weight: normal; margin: 0.5em 0 0.25em 0; - text-transform: capitalize; } #rulesetStats .rulesetDetails p { color: var(--ink-2); diff --git a/platform/mv3/extension/js/popup.js b/platform/mv3/extension/js/popup.js index ffc82c98e059e..1633425c778b5 100644 --- a/platform/mv3/extension/js/popup.js +++ b/platform/mv3/extension/js/popup.js @@ -33,7 +33,7 @@ import { } from './ext.js'; import { dom, qs$ } from './dom.js'; -import { i18n$ } from './i18n.js'; +import { i18n, i18n$ } from './i18n.js'; import punycode from './punycode.js'; /******************************************************************************/ @@ -306,7 +306,7 @@ async function init() { const parent = qs$('#rulesetStats'); for ( const details of popupPanelData.rulesetDetails || [] ) { const div = dom.clone('#templates .rulesetDetails'); - dom.text(qs$(div, 'h1'), details.name); + qs$(div, 'h1').append(i18n.patchUnicodeFlags(details.name)); const { rules, filters, css } = details; let ruleCount = rules.plain + rules.regex; if ( popupPanelData.hasOmnipotence ) {