adjust the size of the disk script menus

This commit is contained in:
MacRimi
2025-04-08 18:18:39 +02:00
parent aed76879b1
commit 2e10aebb78
3 changed files with 5 additions and 5 deletions

View File

@@ -288,8 +288,8 @@ msg_ok "$(translate "Available disks detected.")"
MAX_WIDTH=$(printf "%s\n" "${FREE_DISKS[@]}" | awk '{print length}' | sort -nr | head -n1)
TOTAL_WIDTH=$((MAX_WIDTH + 20))
if [ $TOTAL_WIDTH -lt 70 ]; then
TOTAL_WIDTH=70
if [ $TOTAL_WIDTH -lt 50 ]; then
TOTAL_WIDTH=50
fi
SELECTED=$(whiptail --title "$(translate "Select Disks")" --radiolist \