diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-03-07 13:50:26 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-03-10 16:22:52 +0100 |
commit | 3b20bdd6dc7402b0723e038c57f0606131e20e54 (patch) | |
tree | 68b203892c15c524f57651bfda7e6d5c0e920443 /client/src/app/shared | |
parent | 7b81edc854902a536083298472bf92bb6726edcf (diff) | |
download | PeerTube-3b20bdd6dc7402b0723e038c57f0606131e20e54.tar.gz PeerTube-3b20bdd6dc7402b0723e038c57f0606131e20e54.tar.zst PeerTube-3b20bdd6dc7402b0723e038c57f0606131e20e54.zip |
Servicify menu, close menu on admin for small and medium screens
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/misc/screen.service.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/shared/misc/screen.service.ts b/client/src/app/shared/misc/screen.service.ts index 220d41d59..9c71a8c83 100644 --- a/client/src/app/shared/misc/screen.service.ts +++ b/client/src/app/shared/misc/screen.service.ts | |||
@@ -14,6 +14,10 @@ export class ScreenService { | |||
14 | return this.getWindowInnerWidth() < 800 | 14 | return this.getWindowInnerWidth() < 800 |
15 | } | 15 | } |
16 | 16 | ||
17 | isInMediumView () { | ||
18 | return this.getWindowInnerWidth() < 1100 | ||
19 | } | ||
20 | |||
17 | isInMobileView () { | 21 | isInMobileView () { |
18 | return this.getWindowInnerWidth() < 500 | 22 | return this.getWindowInnerWidth() < 500 |
19 | } | 23 | } |