fix: fixed-width position prefix in Home Pages settings to prevent label shift

Use %2d (right-aligned, always 3 chars) instead of %d so label x-position
stays constant when going from single-digit (1-9) to double-digit (10-11).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-23 09:46:28 +02:00
parent 7510878f9e
commit 4f68e5ffba

View File

@@ -374,7 +374,7 @@ class SettingsScreen : public UIScreen {
} else if (isHomePage(item)) {
int pos = homePagePosition(item, p);
if (pos > 0) {
char pb[4]; snprintf(pb, sizeof(pb), "%d ", pos);
char pb[5]; snprintf(pb, sizeof(pb), "%2d ", pos);
display.print(pb);
}
display.print(homePageLabel(item));