mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Fix # Columns algo
This commit is contained in:
parent
5c73313cc5
commit
a8d3b71f9f
@ -117,7 +117,8 @@ export default new Polymer({
|
||||
|
||||
windowChange() {
|
||||
const matchColumns = this.mqls.reduce((cols, mql) => cols + mql.matches, 0);
|
||||
this.columns = Math.max(1, matchColumns - !this.narrow);
|
||||
// Do -1 column if the menu is docked and open
|
||||
this.columns = Math.max(1, matchColumns - (!this.narrow && this.showMenu));
|
||||
},
|
||||
|
||||
// When user changes tab by pressing back button, blur former tab
|
||||
|
Loading…
x
Reference in New Issue
Block a user