Also move close button to left for simple overlays

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

View File

@ -194,13 +194,13 @@ add_extra_css(def():
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'),
))