Skip to content

Commit

Permalink
[mv3] Fix various minor quirks
Browse files Browse the repository at this point in the history
Related issue:
- uBlockOrigin/uBOL-home#46

Also, patch Unicode flags in popup panel.
  • Loading branch information
gorhill committed Jun 14, 2023
1 parent 9fca6c5 commit 2f991bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platform/mv3/extension/css/dashboard.css
Expand Up @@ -59,7 +59,7 @@ iframe {
border: 0;
flex-grow: 1;
margin: 0;
min-height: 800px;
min-height: 600px;
padding: 0;
}
#unsavedWarning {
Expand Down
1 change: 0 additions & 1 deletion platform/mv3/extension/css/popup.css
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions platform/mv3/extension/js/popup.js
Expand Up @@ -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';

/******************************************************************************/
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit 2f991bf

Please sign in to comment.