From 418561179156e775121d8133f33e7673b44d638a Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 17 Dec 2024 19:32:06 +0100 Subject: [PATCH] feat: burg groups - save select choise --- modules/ui/burg-group-editor.js | 2 +- utils/commonUtils.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/burg-group-editor.js b/modules/ui/burg-group-editor.js index a05d6049..197b778a 100644 --- a/modules/ui/burg-group-editor.js +++ b/modules/ui/burg-group-editor.js @@ -305,7 +305,7 @@ function editBurgGroups() { } options.burgs.groups = lines.map(line => { - const inputs = line.querySelectorAll("input"); + const inputs = line.querySelectorAll("input, select"); const group = Array.from(inputs).reduce((obj, input) => { const value = parseInput(input); if (value !== null) obj[input.name] = value; diff --git a/utils/commonUtils.js b/utils/commonUtils.js index dd4c3d45..71c4898d 100644 --- a/utils/commonUtils.js +++ b/utils/commonUtils.js @@ -164,6 +164,7 @@ void (function () { input.required = options.required === false ? false : true; input.placeholder = "type a " + type; input.value = options.default; + input.style.width = promptText.length > 10 ? "100%" : "auto"; prompt.style.display = "block"; form.addEventListener(