Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Adjust toolbar button sizes / margins

Saúl Ibarra Corretgé44c498a5668d
diff --git a/react/features/conference/components/styles.js b/react/features/conference/components/styles.js
index f667ef3eb1..774044a5d4 100644
--- a/react/features/conference/components/styles.js
+++ b/react/features/conference/components/styles.js
@@ -27,9 +27,9 @@ export default createStyleSheet({
bottom: BoxModel.margin,
flexDirection: 'column',
justifyContent: 'flex-end',
- left: BoxModel.margin,
+ left: 0,
position: 'absolute',
- right: BoxModel.margin,
+ right: 0,
// Both on Android and iOS there is the status bar which may be visible.
// On iPhone X there is the notch. In the two cases BoxModel.margin is
diff --git a/react/features/toolbox/components/native/Toolbox.js b/react/features/toolbox/components/native/Toolbox.js
index 8fe6876bfb..9616becef4 100644
--- a/react/features/toolbox/components/native/Toolbox.js
+++ b/react/features/toolbox/components/native/Toolbox.js
@@ -35,7 +35,7 @@ const _BUTTON_COUNT = 4;
* @private
* @type number
*/
-const _BUTTON_SIZE_FACTOR = 0.8;
+const _BUTTON_SIZE_FACTOR = 0.85;
/**
* The type of {@link Toolbox}'s React {@code Component} props.
@@ -159,7 +159,8 @@ class Toolbox extends Component<Props, State> {
let buttonSize
= (width
- hangupButtonSize
- - (_BUTTON_COUNT * styles.toolbarButton.margin * 2))
+ - (_BUTTON_COUNT
+ * styles.toolbarButton.marginHorizontal * 2))
/ _BUTTON_COUNT;
// Make sure it's an even number.
diff --git a/react/features/toolbox/components/native/styles.js b/react/features/toolbox/components/native/styles.js
index 5d1e0eaee1..b0e4885297 100644
--- a/react/features/toolbox/components/native/styles.js
+++ b/react/features/toolbox/components/native/styles.js
@@ -15,8 +15,7 @@ const toolbarButton = {
flexDirection: 'row',
height: 40,
justifyContent: 'center',
- margin: BoxModel.margin,
- marginBottom: BoxModel.margin / 2,
+ marginHorizontal: 7,
opacity: 0.7,
width: 40
};
@@ -64,6 +63,8 @@ const styles = createStyleSheet({
flexDirection: 'row',
justifyContent: 'center',
left: 0,
+ marginBottom: BoxModel.margin / 2,
+ paddingHorizontal: BoxModel.margin,
position: 'absolute',
right: 0
},