From 66abe58c331877c3904079ce96dbfefbda6c5de4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Dec 2020 08:10:38 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/overlay.pyj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index 76fbc8940d..919ad134df 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -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: