From b3e67efba03f4278d318c2ad9ae33be0451de20b Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Fri, 20 May 2022 11:12:04 +0100 Subject: [PATCH] mobile: fix statusbar in ios webrtc call, move PIP to top --- apps/android/app/src/main/assets/www/call.html | 1 + apps/android/app/src/main/assets/www/style.css | 3 +-- apps/ios/Shared/Views/Call/ActiveCallView.swift | 1 + packages/simplex-chat-webrtc/src/call.html | 1 + packages/simplex-chat-webrtc/src/style.css | 3 +-- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/android/app/src/main/assets/www/call.html b/apps/android/app/src/main/assets/www/call.html index 9f27db015e..d7b3f6cefc 100644 --- a/apps/android/app/src/main/assets/www/call.html +++ b/apps/android/app/src/main/assets/www/call.html @@ -1,6 +1,7 @@
+ diff --git a/apps/android/app/src/main/assets/www/style.css b/apps/android/app/src/main/assets/www/style.css index e2cf4123dc..a59f7c39af 100644 --- a/apps/android/app/src/main/assets/www/style.css +++ b/apps/android/app/src/main/assets/www/style.css @@ -20,8 +20,7 @@ body { max-width: 30%; object-fit: cover; margin: 16px; - margin-bottom: 20%; border-radius: 16px; - bottom: 0; + top: 0; right: 0; } diff --git a/apps/ios/Shared/Views/Call/ActiveCallView.swift b/apps/ios/Shared/Views/Call/ActiveCallView.swift index 47b1bb45ed..995ccaab03 100644 --- a/apps/ios/Shared/Views/Call/ActiveCallView.swift +++ b/apps/ios/Shared/Views/Call/ActiveCallView.swift @@ -26,6 +26,7 @@ struct ActiveCallView: View { .background(.black) ActiveCallOverlay(call: chatModel.activeCall, dismiss: { dismiss() }) } + .preferredColorScheme(.dark) } private func sendCommandToWebView() { diff --git a/packages/simplex-chat-webrtc/src/call.html b/packages/simplex-chat-webrtc/src/call.html index 9f27db015e..d7b3f6cefc 100644 --- a/packages/simplex-chat-webrtc/src/call.html +++ b/packages/simplex-chat-webrtc/src/call.html @@ -1,6 +1,7 @@ + diff --git a/packages/simplex-chat-webrtc/src/style.css b/packages/simplex-chat-webrtc/src/style.css index e2cf4123dc..a59f7c39af 100644 --- a/packages/simplex-chat-webrtc/src/style.css +++ b/packages/simplex-chat-webrtc/src/style.css @@ -20,8 +20,7 @@ body { max-width: 30%; object-fit: cover; margin: 16px; - margin-bottom: 20%; border-radius: 16px; - bottom: 0; + top: 0; right: 0; }