From ccd4840013627d18bde909a7ba4637d2f2bdd94c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Mar 2020 16:01:05 +0530 Subject: [PATCH] Fix #1866536 [[Enhancement - Viewer] Move close button to the left of the toolbar](https://bugs.launchpad.net/calibre/+bug/1866536) --- src/pyj/read_book/overlay.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index 17b7d25aa6..d1cb8a4c64 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -494,8 +494,7 @@ class OpenBook: # {{{ def show(self, container): container.style.backgroundColor = get_color('window-background') container.appendChild(E.div( - style='padding: 1ex 1em; border-bottom: solid 1px currentColor; display:flex; justify-content: space-between', - E.h2(_('Open a new book')), + style='padding: 1ex 1em; border-bottom: solid 1px currentColor; display:flex; justify-content: flex-start', E.div( svgicon('close'), style=f'cursor:pointer', onclick=def(event): @@ -506,6 +505,7 @@ class OpenBook: # {{{ ui_operations.quit() , class_='simple-link'), + E.h2(_('Open a new book'), style='margin-left: 1rem'), )) create_open_book(container, self.overlay.view?.book) # }}}