fix(prompt): prompt preview padding
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 6m30s
Some checks failed
Publish Docker Images / coverage-and-sonar (push) Failing after 6m30s
This commit is contained in:
@@ -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!();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user