Viewer: restrict max size of margin page turn indicators to 25px rather than 75px

This commit is contained in:
Kovid Goyal 2019-10-08 22:43:20 +05:30
parent acad92b5a3
commit 0605ec0054
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -447,7 +447,7 @@ class View:
# margin goes off the screen.
m.nextSibling.style.maxWidth = 'calc(100vw - {}px)'.format(margin_left + margin_right)
set_css(m, width=val + 'px')
val = min(val, 75)
val = min(val, 25)
m.firstChild.style.width = val + 'px'
m.firstChild.style.height = val + 'px'
side_margin('left', margin_left), side_margin('right', margin_right)