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!();
|
||||||
println!("📝 Commit Message Preview:");
|
println!("📝 Commit Message Preview:");
|
||||||
println!(
|
println!(
|
||||||
"┌─────────────────────────────────────────────────────────────────────────────────────────────────┐"
|
"┌─────────────────────────────────────────────────────────────────────────┐"
|
||||||
);
|
);
|
||||||
println!("│ {}│", message);
|
|
||||||
// Pad with spaces to fill the box
|
// Pad with spaces to fill the box
|
||||||
let padding = 72_usize.saturating_sub(message.chars().count());
|
let padding = 72_usize.saturating_sub(message.chars().count());
|
||||||
if padding > 0 {
|
println!("│ {message}{:padding$}│", "");
|
||||||
println!("│{:padding$}│", "");
|
|
||||||
}
|
|
||||||
println!(
|
println!(
|
||||||
"└─────────────────────────────────────────────────────────────────────────────────────────────────┘"
|
"└─────────────────────────────────────────────────────────────────────────┘"
|
||||||
);
|
);
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user