From 06db09f7beab957acd5b4a7f1c011d7e0486a533 Mon Sep 17 00:00:00 2001 From: Greenlamp Date: Fri, 17 May 2024 17:14:22 +0200 Subject: [PATCH] align buttons --- src/ui/settings/abstract-settings-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/settings/abstract-settings-ui-handler.ts b/src/ui/settings/abstract-settings-ui-handler.ts index fcf8b9d0bef..b475b6f1386 100644 --- a/src/ui/settings/abstract-settings-ui-handler.ts +++ b/src/ui/settings/abstract-settings-ui-handler.ts @@ -253,7 +253,7 @@ export default abstract class AbstractSettingsUiUiHandler extends UiHandler { const totalWidth = optionValueLabels[s].map(o => o.width).reduce((total, width) => total += width, 0); // Define the minimum width for a label, ensuring it's at least 78 pixels wide or the width of the setting label plus some padding - const labelWidth = Math.max(78, settingLabels[s].displayWidth + 8); + const labelWidth = Math.max(90, settingLabels[s].displayWidth + 8); // Calculate the total available space for placing option labels next to their setting label // We reserve space for the setting label and then distribute the remaining space evenly