diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-05-01 18:05:28 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-05-01 18:16:50 +0200 |
commit | 3eeeb87fe62fab3e48455f53c8a725b49878b9b3 (patch) | |
tree | 6b759da1dccd43509eef4546cb43166d1e3e0371 /client/src/app/app.component.ts | |
parent | 45ef55fccd120184ed5d02aaa1254a2b26162fac (diff) | |
download | PeerTube-3eeeb87fe62fab3e48455f53c8a725b49878b9b3.tar.gz PeerTube-3eeeb87fe62fab3e48455f53c8a725b49878b9b3.tar.zst PeerTube-3eeeb87fe62fab3e48455f53c8a725b49878b9b3.zip |
Client: try to be responsive
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index a6eb4cd2e..b8b732169 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -45,6 +45,11 @@ export class AppComponent implements OnInit { | |||
45 | this.videoService.loadVideoCategories(); | 45 | this.videoService.loadVideoCategories(); |
46 | this.videoService.loadVideoLicences(); | 46 | this.videoService.loadVideoLicences(); |
47 | this.videoService.loadVideoLanguages(); | 47 | this.videoService.loadVideoLanguages(); |
48 | |||
49 | // Do not display menu on small screens | ||
50 | if (window.innerWidth < 600) { | ||
51 | this.isMenuDisplayed = false; | ||
52 | } | ||
48 | } | 53 | } |
49 | 54 | ||
50 | isInAdmin() { | 55 | isInAdmin() { |