From 133d9c112a19720eccc20def0c01aa0ec009c27a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Feb 2020 15:01:22 +0100 Subject: Fix IOS embed player --- client/src/standalone/videos/embed.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index c91ae08b9..5213443fc 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -262,6 +262,9 @@ export class PeerTubeEmbed { private async buildDock (videoInfo: VideoDetails, configResponse: Response) { if (this.controls) { + // On webtorrent fallback, player may have been disposed + if (!this.player.player_) return + const title = this.title ? videoInfo.name : undefined const config: ServerConfig = await configResponse.json() -- cgit v1.2.3 From c002261381a4dd0b07dd6706942d446b237fd8f4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Feb 2020 15:25:00 +0100 Subject: Correctly fix menu overflow on mobile --- client/src/app/menu/menu.component.scss | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'client/src') diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 112fdc1ce..b05173751 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -254,17 +254,13 @@ menu { @media screen and (max-width: $mobile-view) { .menu-wrapper { width: 100% !important; - } - - .top-menu, .footer { - width: 100% !important; - } -} -@media (hover: none) and (pointer: coarse) { - .menu-wrapper { menu { overflow-y: auto; } } + + .top-menu, .footer { + width: 100% !important; + } } -- cgit v1.2.3