Fix #1907842 [Move Read aloud button above the Exit full screen button in the Content server viewer controls](https://bugs.launchpad.net/calibre/+bug/1907842)

This commit is contained in:
Kovid Goyal 2020-12-12 08:10:38 +05:30
parent 3356597218
commit 66abe58c33
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -331,9 +331,6 @@ class MainOverlay: # {{{
window.setTimeout(self.overlay.view.toggle_autoscroll, 0)
, 'auto-scroll'))
if full_screen_actions.length:
actions_div.appendChild(E.ul(*full_screen_actions))
actions_div.appendChild(E.ul(
ac(_('Read aloud'), _('Read the book aloud'), def():
self.overlay.hide()
@ -341,6 +338,9 @@ class MainOverlay: # {{{
, 'bullhorn')
))
if full_screen_actions.length:
actions_div.appendChild(E.ul(*full_screen_actions))
no_selection_bar = not sd.get('show_selection_bar')
if runtime.is_standalone_viewer:
if no_selection_bar: