mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also move close button to left for simple overlays
This commit is contained in:
parent
4b11f99cd8
commit
3411653498
@ -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'),
|
||||
))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user