mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix defining # columns
This commit is contained in:
parent
4cf94f44b3
commit
3cf3f3e914
@ -117,7 +117,7 @@ export default new Polymer({
|
||||
|
||||
windowChange() {
|
||||
const matchColumns = this.mqls.reduce((cols, mql) => cols + mql.matches, 0);
|
||||
this.columns = Math.max(1, matchColumns - this.showMenu);
|
||||
this.columns = Math.max(1, matchColumns - !this.narrow);
|
||||
},
|
||||
|
||||
// When user changes tab by pressing back button, blur former tab
|
||||
|
Loading…
x
Reference in New Issue
Block a user