chore: make browser expanded/condensed mode persistent

This commit is contained in:
Yohan Boniface 2024-03-12 17:08:51 +01:00
parent 2147e5a612
commit a360ca0e13

View file

@ -68,7 +68,15 @@ U.UI = L.Evented.extend({
}, },
resizePanel: function () { resizePanel: function () {
this._panel.classList.toggle('condensed') if (this.PANEL_MODE === 'expanded') {
this.PANEL_MODE = 'condensed'
this._panel.classList.remove('expanded')
this._panel.classList.add('condensed')
} else {
this.PANEL_MODE = 'expanded'
this._panel.classList.remove('condensed')
this._panel.classList.add('expanded')
}
}, },
closePanel: function () { closePanel: function () {