diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-08-17 10:17:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 10:17:54 +0200 |
commit | 245b9d27bc10a4d8c8eb64add06b653f12763f56 (patch) | |
tree | 4c48717c07d15e08ef36ca600c967b4982a7d03d /client/src/app/core/routing/menu-guard.service.ts | |
parent | 30d55e75cae1adec3fc43c84691975bf8b97db34 (diff) | |
download | PeerTube-245b9d27bc10a4d8c8eb64add06b653f12763f56.tar.gz PeerTube-245b9d27bc10a4d8c8eb64add06b653f12763f56.tar.zst PeerTube-245b9d27bc10a4d8c8eb64add06b653f12763f56.zip |
On touchscreens add content overlay for opened menu (#3088)
* Overflow:hidden on touchscreen when modal-open
* Do not display menu by default on touchscreens
* Add content overlay on touchscreens when menu is opened
* Fix zIndex overlay for search infos
* On touchscreens close menu on swipe left
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/app/core/routing/menu-guard.service.ts')
-rw-r--r-- | client/src/app/core/routing/menu-guard.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/core/routing/menu-guard.service.ts b/client/src/app/core/routing/menu-guard.service.ts index 9df285635..501e009c0 100644 --- a/client/src/app/core/routing/menu-guard.service.ts +++ b/client/src/app/core/routing/menu-guard.service.ts | |||
@@ -15,7 +15,7 @@ abstract class MenuGuard implements CanActivate, CanDeactivate<any> { | |||
15 | // small screens already have the site-wide onResize from screenService | 15 | // small screens already have the site-wide onResize from screenService |
16 | // > medium screens have enough space to fit the administrative menus | 16 | // > medium screens have enough space to fit the administrative menus |
17 | if (!this.screen.isInMobileView() && this.screen.isInMediumView()) { | 17 | if (!this.screen.isInMobileView() && this.screen.isInMediumView()) { |
18 | this.menu.isMenuDisplayed = this.display | 18 | this.menu.setMenuDisplay(this.display) |
19 | } | 19 | } |
20 | return true | 20 | return true |
21 | } | 21 | } |