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)

This commit is contained in:
Kovid Goyal 2019-11-10 08:17:46 +05:30
parent cb12614467
commit 4b11f99cd8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)