mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: When there is empty text for an header footer section render it as blank instead of moving the remaining sections to the left
This commit is contained in:
parent
25e3c0a3ba
commit
b02eb9df01
@ -161,6 +161,8 @@ def render_head_foot(div, which, region, progress_frac, metadata, current_toc_no
|
||||
text = format_time_left(chapter_time)
|
||||
else:
|
||||
text = '{} ({})'.format(format_time_left(chapter_time), format_time_left(book_time))
|
||||
if not text:
|
||||
text = '\xa0'
|
||||
if text is not div.textContent:
|
||||
div.textContent = text
|
||||
div.style.display = 'block' if text else 'none'
|
||||
|
Loading…
x
Reference in New Issue
Block a user