浏览代码

[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,9 +27,9 @@ export default createStyleSheet({
27 27
         bottom: BoxModel.margin,
28 28
         flexDirection: 'column',
29 29
         justifyContent: 'flex-end',
30
-        left: BoxModel.margin,
30
+        left: 0,
31 31
         position: 'absolute',
32
-        right: BoxModel.margin,
32
+        right: 0,
33 33
 
34 34
         // Both on Android and iOS there is the status bar which may be visible.
35 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,7 +35,7 @@ const _BUTTON_COUNT = 4;
35 35
  * @private
36 36
  * @type number
37 37
  */
38
-const _BUTTON_SIZE_FACTOR = 0.8;
38
+const _BUTTON_SIZE_FACTOR = 0.85;
39 39
 
40 40
 /**
41 41
  * The type of {@link Toolbox}'s React {@code Component} props.
@@ -159,7 +159,8 @@ class Toolbox extends Component<Props, State> {
159 159
         let buttonSize
160 160
             = (width
161 161
                     - hangupButtonSize
162
-                    - (_BUTTON_COUNT * styles.toolbarButton.margin * 2))
162
+                    - (_BUTTON_COUNT
163
+                        * styles.toolbarButton.marginHorizontal * 2))
163 164
                 / _BUTTON_COUNT;
164 165
 
165 166
         // Make sure it's an even number.

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

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

正在加载...
取消
保存