diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 85f0a5ab..fd952999 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -762,6 +762,9 @@
"message": "Number of applies-to items",
"description": "Label for the numeric input box to limit max number of applies-to targets in the new UI on manage page"
},
+ "manageMinColumnWidth": {
+ "message": "Minimum column width (in pixels; 9999 disables multi-column mode)"
+ },
"manageNewStyleAsUsercss": {
"message": "as Usercss",
"description": "VERY SHORT label for the checkbox next to the 'Write new style' button in the style manager"
diff --git a/injection-order/injection-order.js b/injection-order/injection-order.js
index f7827db5..5a9de839 100644
--- a/injection-order/injection-order.js
+++ b/injection-order/injection-order.js
@@ -37,7 +37,7 @@ async function InjectionOrder(show, el, selector) {
parts.name.href = '/edit.html?id=' + style.id;
parts.name.textContent = style.name;
return Object.assign(entry.cloneNode(true), {
- styleNameLowerCase: style.name.toLocaleLowerCase(),
+ styleNameLC: style.name.toLocaleLowerCase(),
});
}
diff --git a/js/dom.js b/js/dom.js
index 7e1c1d22..1237f6b9 100644
--- a/js/dom.js
+++ b/js/dom.js
@@ -314,9 +314,7 @@ function setupLivePrefs(ids) {
function getValue(el) {
const type = el.dataset.valueType || el.type;
return type === 'checkbox' ? el.checked :
- // https://stackoverflow.com/questions/18062069/why-does-valueasnumber-return-nan-as-a-value
- // valueAsNumber is not applicable for input[text/radio] or select
- type === 'number' ? Number(el.value) :
+ type === 'number' ? parseFloat(el.value) :
el.value;
}
function isSame(el, oldValue, value) {
@@ -465,6 +463,7 @@ prefs.ready.then(() => {
const max = (innerWidth < 850 ? screen.availWidth : innerWidth) / 3;
width = Math.round(Math.max(200, Math.min(max, Number(width) || 0)));
$.root.style.setProperty('--header-width', width + 'px');
+ dom.HWval = width;
return width;
},
});
diff --git a/js/prefs.js b/js/prefs.js
index 5ef033e9..d130122b 100644
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -55,6 +55,7 @@
'manage.actions.expanded': true,
'manage.backup.expanded': true,
'manage.filters.expanded': true,
+ 'manage.minColumnWidth': 750,
// the new compact layout doesn't look good on Android yet
'manage.newUI': true,
'manage.newUI.favicons': false, // show favicons for the sites in applies-to
diff --git a/manage.html b/manage.html
index a05b528c..710cc120 100644
--- a/manage.html
+++ b/manage.html
@@ -18,6 +18,8 @@
+ .
+ .
@@ -29,10 +31,8 @@
-
+
-
-
@@ -49,9 +49,9 @@
+
-