瀏覽代碼

[RN] Adjust toolbar button sizes / margins

- add 10px of padding on the sizes of the toolbar
- make the button margin smaller (from 10 to 7)
- increate the secondary button factor to 85%, thus rising the maximum secondary
  button size to 50 (from the previous 48)
master
Saúl Ibarra Corretgé 7 年之前
父節點
當前提交
44c498a566

+ 2
- 2
react/features/conference/components/styles.js 查看文件

27
         bottom: BoxModel.margin,
27
         bottom: BoxModel.margin,
28
         flexDirection: 'column',
28
         flexDirection: 'column',
29
         justifyContent: 'flex-end',
29
         justifyContent: 'flex-end',
30
-        left: BoxModel.margin,
30
+        left: 0,
31
         position: 'absolute',
31
         position: 'absolute',
32
-        right: BoxModel.margin,
32
+        right: 0,
33
 
33
 
34
         // Both on Android and iOS there is the status bar which may be visible.
34
         // Both on Android and iOS there is the status bar which may be visible.
35
         // On iPhone X there is the notch. In the two cases BoxModel.margin is
35
         // On iPhone X there is the notch. In the two cases BoxModel.margin is

+ 3
- 2
react/features/toolbox/components/native/Toolbox.js 查看文件

35
  * @private
35
  * @private
36
  * @type number
36
  * @type number
37
  */
37
  */
38
-const _BUTTON_SIZE_FACTOR = 0.8;
38
+const _BUTTON_SIZE_FACTOR = 0.85;
39
 
39
 
40
 /**
40
 /**
41
  * The type of {@link Toolbox}'s React {@code Component} props.
41
  * The type of {@link Toolbox}'s React {@code Component} props.
159
         let buttonSize
159
         let buttonSize
160
             = (width
160
             = (width
161
                     - hangupButtonSize
161
                     - hangupButtonSize
162
-                    - (_BUTTON_COUNT * styles.toolbarButton.margin * 2))
162
+                    - (_BUTTON_COUNT
163
+                        * styles.toolbarButton.marginHorizontal * 2))
163
                 / _BUTTON_COUNT;
164
                 / _BUTTON_COUNT;
164
 
165
 
165
         // Make sure it's an even number.
166
         // Make sure it's an even number.

+ 3
- 2
react/features/toolbox/components/native/styles.js 查看文件

15
     flexDirection: 'row',
15
     flexDirection: 'row',
16
     height: 40,
16
     height: 40,
17
     justifyContent: 'center',
17
     justifyContent: 'center',
18
-    margin: BoxModel.margin,
19
-    marginBottom: BoxModel.margin / 2,
18
+    marginHorizontal: 7,
20
     opacity: 0.7,
19
     opacity: 0.7,
21
     width: 40
20
     width: 40
22
 };
21
 };
64
         flexDirection: 'row',
63
         flexDirection: 'row',
65
         justifyContent: 'center',
64
         justifyContent: 'center',
66
         left: 0,
65
         left: 0,
66
+        marginBottom: BoxModel.margin / 2,
67
+        paddingHorizontal: BoxModel.margin,
67
         position: 'absolute',
68
         position: 'absolute',
68
         right: 0
69
         right: 0
69
     },
70
     },

Loading…
取消
儲存