diff --git a/src/pyj/read_book/prefs/head_foot.pyj b/src/pyj/read_book/prefs/head_foot.pyj index 65d84ece95..4a5ee4a1f6 100644 --- a/src/pyj/read_book/prefs/head_foot.pyj +++ b/src/pyj/read_book/prefs/head_foot.pyj @@ -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'