Переглянути джерело

fix(rn, Labels): Place picture-in-picture button on the left

j8
Vlad Piersec 4 роки тому
джерело
коміт
79939f108c

+ 4
- 2
react/features/conference/components/native/NavigationBar.js Переглянути файл

@@ -53,8 +53,10 @@ const NavigationBar = (props: Props) => {
53 53
         <View
54 54
             pointerEvents = 'box-none'
55 55
             style = { styles.navBarWrapper }>
56
-            <PictureInPictureButton
57
-                styles = { styles.navBarButton } />
56
+            <View style = { styles.pipButtonContainer }>
57
+                <PictureInPictureButton
58
+                    styles = { styles.pipButton } />
59
+            </View>
58 60
             <View
59 61
                 pointerEvents = 'box-none'
60 62
                 style = { styles.roomNameWrapper }>

+ 8
- 2
react/features/conference/components/native/styles.js Переглянути файл

@@ -53,12 +53,18 @@ export default {
53 53
         paddingVertical: 12
54 54
     },
55 55
 
56
-    navBarButton: {
56
+    pipButtonContainer: {
57
+        position: 'absolute',
58
+        top: 10,
59
+        left: 5,
60
+        zIndex: 1
61
+    },
62
+
63
+    pipButton: {
57 64
         iconStyle: {
58 65
             color: ColorPalette.white,
59 66
             fontSize: 24
60 67
         },
61
-
62 68
         underlayColor: 'transparent'
63 69
     },
64 70
 

Завантаження…
Відмінити
Зберегти