mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Viewer: Hide the browser provided scrollbar that flashes momentarily on page load. Fixes #1846922 [Scroll bar in new viewer](https://bugs.launchpad.net/calibre/+bug/1846922)
This commit is contained in:
parent
0e8d5d3793
commit
d3c0452d6f
@ -41,9 +41,11 @@ def apply_colors():
|
||||
document.documentElement.appendChild(ss)
|
||||
if opts.color_scheme.link:
|
||||
c = opts.color_scheme.link
|
||||
ss.textContent = f':link, :link * {{ color: {c} !important }} :visited, :visited * {{ color: {c} !important }}'
|
||||
text = f':link, :link * {{ color: {c} !important }} :visited, :visited * {{ color: {c} !important }}'
|
||||
else:
|
||||
ss.textContent = ''
|
||||
text = ''
|
||||
|
||||
ss.textContent = text + '\n\nhtml::-webkit-scrollbar, body::-webkit-scrollbar { display: none }'
|
||||
|
||||
|
||||
def apply_stylesheet():
|
||||
|
Loading…
x
Reference in New Issue
Block a user