mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: restrict max size of margin page turn indicators to 25px rather than 75px
This commit is contained in:
parent
acad92b5a3
commit
0605ec0054
@ -447,7 +447,7 @@ class View:
|
|||||||
# margin goes off the screen.
|
# margin goes off the screen.
|
||||||
m.nextSibling.style.maxWidth = 'calc(100vw - {}px)'.format(margin_left + margin_right)
|
m.nextSibling.style.maxWidth = 'calc(100vw - {}px)'.format(margin_left + margin_right)
|
||||||
set_css(m, width=val + 'px')
|
set_css(m, width=val + 'px')
|
||||||
val = min(val, 75)
|
val = min(val, 25)
|
||||||
m.firstChild.style.width = val + 'px'
|
m.firstChild.style.width = val + 'px'
|
||||||
m.firstChild.style.height = val + 'px'
|
m.firstChild.style.height = val + 'px'
|
||||||
side_margin('left', margin_left), side_margin('right', margin_right)
|
side_margin('left', margin_left), side_margin('right', margin_right)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user