Skip to content

Commit d2d7e27

Browse files
committed
fix: Correct box alignment in system updater UI
1 parent 34f5f3d commit d2d7e27

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

update.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ get_system_info() {
8989
show_system_status() {
9090
get_system_info
9191

92-
# Box width (inner content width = 47 chars)
93-
local box_width=47
92+
# Box width (inner content width = 49 chars)
93+
local box_width=49
9494

9595
echo -e " ┌─────────────────────────────────────────────────┐"
9696
echo -e "${BOLD}System Information${NC}"
@@ -828,9 +828,9 @@ handle_config_conflict() {
828828
# Use loop instead of recursion to avoid stack depth issues
829829
while true; do
830830
echo ""
831-
echo -e " ${YELLOW}╔══════════════════════════════════════════════════════════════${NC}"
832-
echo -e " ${YELLOW}║ Conflict in: ${BOLD}$config_name${NC}"
833-
echo -e " ${YELLOW}╚══════════════════════════════════════════════════════════════${NC}"
831+
echo -e " ${YELLOW}╔═══════════════════════════════════════════════════════════╗${NC}"
832+
printf " ${YELLOW}${NC} Conflict in: ${BOLD}%-43s${NC}${YELLOW}${NC}\n" "$config_name"
833+
echo -e " ${YELLOW}╚═══════════════════════════════════════════════════════════╝${NC}"
834834
echo ""
835835

836836
# Show diff summary

0 commit comments

Comments
 (0)