aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-03-07 13:50:26 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-03-10 16:22:52 +0100
commit3b20bdd6dc7402b0723e038c57f0606131e20e54 (patch)
tree68b203892c15c524f57651bfda7e6d5c0e920443 /client/src/app/shared
parent7b81edc854902a536083298472bf92bb6726edcf (diff)
downloadPeerTube-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.ts4
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 }