align buttons

This commit is contained in:
Greenlamp 2024-05-17 17:14:22 +02:00
parent c4a4242861
commit 06db09f7be

View File

@ -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