Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit d9a6da1

Browse files
authored
Minor UI patch (#17955)
* Add comment * EASE mode toggle logic check * CSS adjustments
1 parent 6b71fab commit d9a6da1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

chromium/pages/popup/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ <h1 id="onoffswitch_label" data-i18n="menu_globalEnable"></h1>
3232
</section>
3333

3434
<section id="HttpNowhere" class="options settings_block" style="visibility: hidden;">
35-
<h1 id="HttpNowhere__header" data-i18n="menu_encryptAllSitesEligibleOn"></h1>
35+
<h1 id="HttpNowhere__header"></h1>
3636
<input aria-hidden="true" id="http-nowhere-checkbox" type="checkbox"><label id="http-nowhere-checkbox_label" aria-label="Toggle on or off" for="http-nowhere-checkbox"></label>
37-
<h2 id="HttpNowhere__explained" data-i18n="menu_httpNoWhereExplainedAllowed"></h2>
37+
<h2 id="HttpNowhere__explained"></h2>
3838
</section>
3939

4040
<section id="RuleManagement" class="settings_block">

chromium/pages/popup/style.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ input:checked+label:after {
261261

262262
#StableRules h3 {
263263
float: left;
264-
margin-left: 10px;
264+
margin: 10px;
265265
}
266266
#StableRules h2 {
267267
margin-left: 10px;
@@ -271,12 +271,11 @@ input:checked+label:after {
271271
border-radius: 20px;
272272
color: #fff;
273273
display: block;
274-
float: right;
274+
float: left;
275275
font-size: 12px;
276276
font-weight: bold;
277277
height: 15px;
278-
margin-top: 10px;
279-
margin-right: 55%;
278+
margin-top: 8px;
280279
padding: 5px;
281280
text-align: center;
282281
width: 15px;

chromium/pages/popup/ux.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ function showHttpNowhereUI() {
138138
e('http-nowhere-checkbox').checked = true;
139139
e('HttpNowhere__header').innerText = chrome.i18n.getMessage("menu_encryptAllSitesEligibleOn");
140140
e('HttpNowhere__explained').innerText = chrome.i18n.getMessage("menu_httpNoWhereExplainedBlocked");
141+
} else {
142+
e('HttpNowhere__header').innerText = chrome.i18n.getMessage("menu_encryptAllSitesEligibleOff");
143+
e('HttpNowhere__explained').innerText = chrome.i18n.getMessage("menu_httpNoWhereExplainedAllowed");
141144
}
142-
e('HttpNowhere__header').innerText = chrome.i18n.getMessage("menu_encryptAllSitesEligibleOff");
143-
e('HttpNowhere__explained').innerText = chrome.i18n.getMessage("menu_httpNoWhereExplainedAllowed");
144145
e('HttpNowhere').style.visibility = "visible";
145146
});
146147
};

0 commit comments

Comments
 (0)