diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-09 09:30:37 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-09 09:30:37 +0100 |
commit | 3290f37c76784f1b96cefb5d389e48db56033b0a (patch) | |
tree | f383d1ea4ca666ac976c80c9a1277edd2ef0ef7e /client/src/app/app.component.ts | |
parent | 7193ad1044d2dfad8f929f0951f9a3601c056f67 (diff) | |
download | PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.tar.gz PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.tar.zst PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.zip |
Video previews take all the width on mobile
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 121e60ffc..220b104b7 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router' | 2 | import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router' |
3 | import { AuthService, ServerService } from '@app/core' | 3 | import { AuthService, ServerService } from '@app/core' |
4 | import { isInMobileView } from '@app/shared/misc/utils' | 4 | import { isInSmallView } from '@app/shared/misc/utils' |
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
7 | selector: 'my-app', | 7 | selector: 'my-app', |
@@ -54,14 +54,14 @@ export class AppComponent implements OnInit { | |||
54 | this.serverService.loadVideoPrivacies() | 54 | this.serverService.loadVideoPrivacies() |
55 | 55 | ||
56 | // Do not display menu on small screens | 56 | // Do not display menu on small screens |
57 | if (isInMobileView()) { | 57 | if (isInSmallView()) { |
58 | this.isMenuDisplayed = false | 58 | this.isMenuDisplayed = false |
59 | } | 59 | } |
60 | 60 | ||
61 | this.router.events.subscribe( | 61 | this.router.events.subscribe( |
62 | e => { | 62 | e => { |
63 | // User clicked on a link in the menu, change the page | 63 | // User clicked on a link in the menu, change the page |
64 | if (e instanceof GuardsCheckStart && isInMobileView()) { | 64 | if (e instanceof GuardsCheckStart && isInSmallView()) { |
65 | this.isMenuDisplayed = false | 65 | this.isMenuDisplayed = false |
66 | } | 66 | } |
67 | } | 67 | } |