mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 20:58:22 +01:00
Also move close button to left for simple overlays
This commit is contained in:
parent
4b11f99cd8
commit
3411653498
1 changed files with 2 additions and 2 deletions
|
|
@ -194,13 +194,13 @@ def sync_data_received(self, library_id, lrmap, load_type, xhr, ev):
|
|||
def simple_overlay_title(title, overlay, 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(title),
|
||||
style='padding: 1ex 1em; border-bottom: solid 1px currentColor; display:flex; justify-content: flex-start',
|
||||
E.div(svgicon('close'), style='cursor:pointer', onclick=def (event):
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
overlay.hide_current_panel(event)
|
||||
, class_='simple-link'),
|
||||
E.h2(title, style='margin-left: 1ex'),
|
||||
))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue