From 4b11f99cd874567667aeea03d62bfc80f67dbefa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 10 Nov 2019 08:17:46 +0530 Subject: [PATCH] Move close button in viewer preferences to left to match the rest of the content server UI. Fixes #1851937 [The close button placement](https://bugs.launchpad.net/calibre/+bug/1851937) --- src/pyj/read_book/prefs/main.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/prefs/main.pyj b/src/pyj/read_book/prefs/main.pyj index 2e14651fc3..3c4be6353f 100644 --- a/src/pyj/read_book/prefs/main.pyj +++ b/src/pyj/read_book/prefs/main.pyj @@ -28,9 +28,9 @@ class Prefs: title = E.h2() self.title_id = ensure_id(title) container.appendChild(E.div( - style='display: flex; justify-content: space-between; padding: 1ex 1em; border-bottom: solid 1px currentColor', + style='display: flex; justify-content: flex-start; padding: 1ex 1em; border-bottom: solid 1px currentColor', + E.div(svgicon('close'), onclick=self.onclose, style='cursor:pointer; margin-right: 1ex'), title, - E.div(svgicon('close'), onclick=self.onclose, style='cursor:pointer'), )) container.appendChild(E.div()) self.container_id = ensure_id(container.lastChild)