uiToolbar on the way, screen sized windows by default

This commit is contained in:
bordun 2020-03-03 22:18:16 +01:00
parent a58075c602
commit 5b1913da12
17 changed files with 252 additions and 51 deletions

View file

@ -49,7 +49,7 @@ class Modal extends Panel {
super(options)
this.popup = html`
<div class="popup backdrop">
<div class="popup">
<div class="popup-wrapper">
<div class="popup-title closable"><span class="popup-label"></span><span class="closer">${raw(icon('times'))}</span></div>
<div class="popup-content widget panel-container not-editable contains-widgets"></div>

View file

@ -47,7 +47,7 @@ class Panel extends Container() {
super({...options, html: html`<inner></inner>`})
this.container.classList.toggle('no-scroll', this.getProp('scroll') === false)
this.container.classList.toggle('no-scroll', !this.getProp('scroll'))
this.container.classList.add('layout-' + this.getProp('layout'))
if (this.getProp('layout') === 'grid') {

View file

@ -48,9 +48,11 @@ class Root extends StaticProperties(Panel, {scroll: false, label: false, id: 'ro
this.widget.classList.add('root')
DOM.each(this.widget, '> .navigation', (el)=>{
el.classList.add('main')
})
this.trigger('root-nav-changed')
}
@ -58,12 +60,6 @@ class Root extends StaticProperties(Panel, {scroll: false, label: false, id: 'ro
super.createNavigation()
this.navigation.appendChild(html`
<div class="tools not-editable">${raw(icon('expand'))}></div>
<div class="tools not-editable">${raw(icon('pen'))}></div>
<div class="tools not-editable">${raw(icon('ellipsis-v'))}></div>
`)
}
isVisible() {