Fix sync choice box width

This commit is contained in:
crschnick
2026-02-10 07:35:15 +00:00
parent 6d95f34107
commit dcc1a45ec8

View File

@@ -82,7 +82,7 @@ public class SyncCategory extends AppPrefsCategory {
.sub(prefs.getCustomOptions("gitVaultIdentityStrategy"))
.pref(prefs.syncMode)
.addComp(
ChoiceComp.ofTranslatable(prefs.syncMode, Arrays.asList(SyncMode.values()), false),
ChoiceComp.ofTranslatable(prefs.syncMode, Arrays.asList(SyncMode.values()), false).maxWidth(getCompWidth()),
prefs.syncMode)
.addComp(createManualControls())
.hide(prefs.syncMode.isNotEqualTo(SyncMode.MANUAL).or(prefs.enableGitStorage.not()))