From db54d0594b84966ec3568c90c4219abb60c2e41f Mon Sep 17 00:00:00 2001 From: alexwl Date: Sat, 23 Mar 2019 01:58:05 +0300 Subject: Hide the left panel by default on small screens; reduce initial-scale --- javascript/app/components/resizable-panel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'javascript/app/components') diff --git a/javascript/app/components/resizable-panel.js b/javascript/app/components/resizable-panel.js index 8dae7ed..20d781b 100644 --- a/javascript/app/components/resizable-panel.js +++ b/javascript/app/components/resizable-panel.js @@ -24,7 +24,7 @@ export default Ember.Component.extend({ hidden:false, hiddenByUser:false, didInsertElement : function () { - this._super(...arguments); + this._super(...arguments); Ember.run.next(this,() => { const onresize = () => { if(!this.get('hiddenByUser')) { @@ -50,6 +50,10 @@ export default Ember.Component.extend({ } }); this.$alsoResizeElement = $alsoResizeElement; + if(window.innerWidth < 700) { + this.set('hidden',true); + hide(this,false); + } }); }, hideButtonLabel : Ember.computed('hidden',function() { -- cgit v1.2.3