From c93fa1488ef30f813f631c5a31d6d7dcf3c4785c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 14 Jun 2026 23:48:45 +1000 Subject: [PATCH] fix: align component prompt regardless of digits --- src/caelestia/subcommands/install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/caelestia/subcommands/install.py b/src/caelestia/subcommands/install.py index e13ebecc..0042d154 100644 --- a/src/caelestia/subcommands/install.py +++ b/src/caelestia/subcommands/install.py @@ -124,8 +124,9 @@ class Command: return print(format_msg(PROMPT_COLOUR, "Components to enable?")) + max_idx_w = len(str(len(comp_arr))) for i, comp in enumerate(comp_arr): - print(format_msg(PROMPT_COLOUR, f" [{i + 1}] {comp}")) + print(format_msg(PROMPT_COLOUR, f" {i + 1:<{max_idx_w}}\t{comp}")) print(format_msg(PROMPT_COLOUR, "[A]ll or (1 2 3, 1-3, ^4)")) ans = prompt("", end="").lower().strip()