Fixed pikvm/pikvm#38: Closeable stream window

This commit is contained in:
Devaev Maxim
2020-08-16 10:35:29 +03:00
parent 2f069dbf91
commit 8c40029956
7 changed files with 57 additions and 14 deletions

View File

@@ -1,9 +1,8 @@
mixin window(id, title, closeable=true, with_header_id=false)
mixin window(id, title, with_header_id=false)
div(id=id class="window")
div(id=(with_header_id ? `${id}-header` : "") class="window-header" style=(closeable ? "" : "z-index:1"))
div(id=(with_header_id ? `${id}-header` : "") class="window-header")
div(class="window-grab") #{title}
if closeable
button(class="window-button-close") ×
button(class="window-button-close") ×
block
include window-stream.pug