From 736604739810bec773cc8213cd46d4792d7fbecd Mon Sep 17 00:00:00 2001 From: tw93 Date: Mon, 2 Feb 2026 11:25:39 +0800 Subject: [PATCH] fix: adjust output formatting in clean_project_artifacts function for better alignment --- lib/clean/project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/clean/project.sh b/lib/clean/project.sh index d558bf8..91944cf 100644 --- a/lib/clean/project.sh +++ b/lib/clean/project.sh @@ -994,7 +994,7 @@ clean_project_artifacts() { local size_str="$3" # Terminal width for alignment local terminal_width=$(tput cols 2> /dev/null || echo 80) - local fixed_width=28 # Reserve for size and artifact type (9 + 3 + 16) + local fixed_width=32 # Reserve for size and artifact type (9 + 3 + 20) local available_width=$((terminal_width - fixed_width)) # Bounds: 30-50 chars for project path (increased to accommodate full paths) [[ $available_width -lt 30 ]] && available_width=30 @@ -1006,7 +1006,7 @@ clean_project_artifacts() { local padding=$((available_width - current_width)) local printf_width=$((char_count + padding)) # Format: "project_path size | artifact_type" - printf "%-*s %9s | %-13s" "$printf_width" "$truncated_path" "$size_str" "$artifact_type" + printf "%-*s %9s | %-17s" "$printf_width" "$truncated_path" "$size_str" "$artifact_type" } # Build menu options - one line per artifact for item in "${safe_to_clean[@]}"; do