mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Tiny screens get sane minimums
This commit is contained in:
parent
ac8d24a1ce
commit
4ed6e4d016
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ columns=$(echo $screen_size | awk '{print $2}')
|
||||||
# Divide by two so the dialogs take up half of the screen, which looks nice.
|
# Divide by two so the dialogs take up half of the screen, which looks nice.
|
||||||
r=$(( rows / 2 ))
|
r=$(( rows / 2 ))
|
||||||
c=$(( columns / 2 ))
|
c=$(( columns / 2 ))
|
||||||
|
# Unless the screen is tiny
|
||||||
|
r=$(( r < 20 ? 20 : r ))
|
||||||
|
c=$(( c < 70 ? 70 : c ))
|
||||||
|
|
||||||
######## Undocumented Flags. Shhh ########
|
######## Undocumented Flags. Shhh ########
|
||||||
skipSpaceCheck=false
|
skipSpaceCheck=false
|
||||||
|
|
Loading…
Reference in a new issue