This commit is contained in:
Kovid Goyal 2017-05-11 17:56:18 +05:30
parent f92f70da44
commit 5ef974e782
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ def is_reading_book():
return cq and cq.mode is read_book_mode return cq and cq.mode is read_book_mode
def apply_mode(mode): def apply_mode():
divid = read_book_container_id if is_reading_book() else book_list_container_id divid = read_book_container_id if is_reading_book() else book_list_container_id
for div in document.getElementById(divid).parentNode.childNodes: for div in document.getElementById(divid).parentNode.childNodes:
div.style.display = 'block' if div.id is divid else 'none' div.style.display = 'block' if div.id is divid else 'none'

View File

@ -78,7 +78,7 @@ class View:
left_margin, left_margin,
E.div(style='flex-grow:2; display:flex; align-items:stretch; flex-direction: column', # container for top and bottom margins E.div(style='flex-grow:2; display:flex; align-items:stretch; flex-direction: column', # container for top and bottom margins
E.div(style='height:{}px; width:100%; padding: 0; cursor: pointer'.format(sd.get('margin_top', 20)), id='book-top-margin', onclick=self.top_margin_clicked), E.div(style='height:{}px; width:100%; padding: 0; cursor: pointer'.format(sd.get('margin_top', 20)), id='book-top-margin', onclick=self.top_margin_clicked),
E.iframe(id=iframe_id, seamless=True, sandbox='allow-popups allow-scripts', style='flex-grow: 2'), E.iframe(id=iframe_id, seamless=True, sandbox='allow-popups allow-scripts', style='flex-grow: 2', allowfullscreen='true'),
bottom_margin(sd), bottom_margin(sd),
), ),
right_margin, right_margin,