Browse Source

Fix possible excessive width of drop-down box.

Ian Walton 3 years ago
parent
commit
7a87bcde75
1 changed files with 1 additions and 0 deletions
  1. 1 0
      native/nativeshell.js

+ 1 - 0
native/nativeshell.js

@@ -208,6 +208,7 @@ async function showSettingsModal() {
                 if (setting.options) {
                 if (setting.options) {
                     const safeValues = {};
                     const safeValues = {};
                     const control = document.createElement("select");
                     const control = document.createElement("select");
+                    control.style.maxWidth = "350px";
                     for (const option of setting.options) {
                     for (const option of setting.options) {
                         safeValues[String(option.value)] = option.value;
                         safeValues[String(option.value)] = option.value;
                         const opt = document.createElement("option");
                         const opt = document.createElement("option");