fix(prompt): prompt preview padding
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 6m30s

This commit is contained in:
2026-03-09 22:17:58 +01:00
parent 0b00ec30a3
commit be2d34760d

View File

@@ -144,16 +144,13 @@ impl Prompter for RealPrompts {
println!();
println!("📝 Commit Message Preview:");
println!(
"┌─────────────────────────────────────────────────────────────────────────────────────────────────"
"┌─────────────────────────────────────────────────────────────────────────┐"
);
println!("{}", message);
// Pad with spaces to fill the box
let padding = 72_usize.saturating_sub(message.chars().count());
if padding > 0 {
println!("{:padding$}", "");
}
println!("{message}{:padding$}", "");
println!(
"└─────────────────────────────────────────────────────────────────────────────────────────────────"
"└─────────────────────────────────────────────────────────────────────────┘"
);
println!();