diff --git a/scripts/disk-passthrough.sh b/scripts/disk-passthrough.sh index 9fe5a31..5a1a53f 100644 --- a/scripts/disk-passthrough.sh +++ b/scripts/disk-passthrough.sh @@ -245,8 +245,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 diff --git a/scripts/disk-passthrough_ct.sh b/scripts/disk-passthrough_ct.sh index c508468..46671e0 100644 --- a/scripts/disk-passthrough_ct.sh +++ b/scripts/disk-passthrough_ct.sh @@ -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 \ diff --git a/scripts/vm/synology.sh b/scripts/vm/synology.sh index b07c378..25f8876 100644 --- a/scripts/vm/synology.sh +++ b/scripts/vm/synology.sh @@ -591,7 +591,7 @@ function select_passthrough_disk() { MAX_WIDTH=$(printf "%s\n" "${FREE_DISKS[@]}" | awk '{print length}' | sort -nr | head -n1) TOTAL_WIDTH=$((MAX_WIDTH + 20)) - [ $TOTAL_WIDTH -lt 70 ] && TOTAL_WIDTH=70 + [ $TOTAL_WIDTH -lt 50 ] && TOTAL_WIDTH=50 cleanup SELECTED_DISKS=$(whiptail --title "Select Disks" --checklist \ "$(translate "Select the disks you want to use (use spacebar to select):")" 20 $TOTAL_WIDTH 10 \