Skip to content

Commit 11a9ba3

Browse files
committed
fix: Dynamic box sizing and alignment for variable-length content (v7)
1 parent d0b8f51 commit 11a9ba3

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6
1+
7

update.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ show_system_status() {
115115
echo -e "${border}"
116116

117117
# Content lines with dynamic padding
118-
printf " │ Fedora Version: ${GREEN}%-$((box_width - 22))s${NC} │\n" "$FEDORA_VERSION"
119-
printf " │ Kernel: ${CYAN}%-$((box_width - 14))s${NC} │\n" "$KERNEL_VERSION"
120-
printf " │ Last Package Change: ${YELLOW}%-$((box_width - 28))s${NC} │\n" "$LAST_UPDATE"
118+
# Format: " │ <label>: " + value + " │" = box_width inside
119+
printf " │ Fedora Version: ${GREEN}%-$((box_width - 20))s${NC} │\n" "$FEDORA_VERSION"
120+
printf " │ Kernel: ${CYAN}%-$((box_width - 12))s${NC} │\n" "$KERNEL_VERSION"
121+
printf " │ Last Package Change: ${YELLOW}%-$((box_width - 26))s${NC} │\n" "$LAST_UPDATE"
121122

122123
echo -e "${border}"
123124
echo ""

0 commit comments

Comments
 (0)