Преглед на файлове

fix(rn,lobby) match button style

master
Saúl Ibarra Corretgé преди 3 години
родител
ревизия
d78e8fba25
променени са 2 файла, в които са добавени 38 реда и са изтрити 46 реда
  1. 27
    42
      react/features/lobby/components/native/LobbyScreen.js
  2. 11
    4
      react/features/lobby/components/native/styles.js

+ 27
- 42
react/features/lobby/components/native/LobbyScreen.js Целия файл

@@ -42,10 +42,34 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
42 42
      * @inheritdoc
43 43
      */
44 44
     render() {
45
+        const { _aspectRatio } = this.props;
46
+        let contentStyles;
47
+        let largeVideoContainerStyles;
48
+        let contentContainerStyles;
49
+
50
+        if (_aspectRatio === ASPECT_RATIO_NARROW) {
51
+            largeVideoContainerStyles = styles.largeVideoContainer;
52
+            contentContainerStyles = styles.contentContainer;
53
+        } else {
54
+            contentStyles = styles.contentWide;
55
+            largeVideoContainerStyles = styles.largeVideoContainerWide;
56
+            contentContainerStyles = styles.contentContainerWide;
57
+        }
58
+
45 59
         return (
46
-            <>
47
-                { this._renderLobby() }
48
-            </>
60
+            <JitsiScreen
61
+                safeAreaInsets = { [ 'right' ] }
62
+                style = { styles.contentWrapper }>
63
+                <View style = { contentStyles }>
64
+                    <View style = { largeVideoContainerStyles }>
65
+                        <LargeVideo />
66
+                    </View>
67
+                    <View style = { contentContainerStyles }>
68
+                        { this._renderContent() }
69
+                        { this._renderToolbarButtons() }
70
+                    </View>
71
+                </View>
72
+            </JitsiScreen>
49 73
         );
50 74
     }
51 75
 
@@ -73,8 +97,6 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
73 97
 
74 98
     _renderToolbarButtons: () => React$Element<*>;
75 99
 
76
-    _renderLobby: () => React$Element<*>;
77
-
78 100
     _onNavigateToLobbyChat: () => void;
79 101
 
80 102
     /**
@@ -87,43 +109,6 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {
87 109
         navigate(screen.lobby.chat);
88 110
     }
89 111
 
90
-    /**
91
-     * Renders the lobby.
92
-     *
93
-     * @inheritdoc
94
-     */
95
-    _renderLobby() {
96
-        const { _aspectRatio } = this.props;
97
-        let contentStyles;
98
-        let largeVideoContainerStyles;
99
-        let contentContainerStyles;
100
-
101
-        if (_aspectRatio === ASPECT_RATIO_NARROW) {
102
-            largeVideoContainerStyles = styles.largeVideoContainer;
103
-            contentContainerStyles = styles.contentContainer;
104
-        } else {
105
-            contentStyles = styles.contentWide;
106
-            largeVideoContainerStyles = styles.largeVideoContainerWide;
107
-            contentContainerStyles = styles.contentContainerWide;
108
-        }
109
-
110
-        return (
111
-            <JitsiScreen
112
-                safeAreaInsets = { [ 'right' ] }
113
-                style = { styles.contentWrapper }>
114
-                <View style = { contentStyles }>
115
-                    <View style = { largeVideoContainerStyles }>
116
-                        <LargeVideo />
117
-                    </View>
118
-                    <View style = { contentContainerStyles }>
119
-                        { this._renderContent() }
120
-                        { this._renderToolbarButtons() }
121
-                    </View>
122
-                </View>
123
-            </JitsiScreen>
124
-        );
125
-    }
126
-
127 112
     /**
128 113
      * Renders the joining (waiting) fragment of the screen.
129 114
      *

+ 11
- 4
react/features/lobby/components/native/styles.js Целия файл

@@ -7,8 +7,9 @@ const SECONDARY_COLOR = BaseTheme.palette.border04;
7 7
 export default {
8 8
     button: {
9 9
         alignItems: 'center',
10
-        borderRadius: 4,
10
+        borderRadius: BaseTheme.shape.borderRadius,
11 11
         padding: BaseTheme.spacing[2],
12
+        height: BaseTheme.spacing[7],
12 13
         width: '100%'
13 14
     },
14 15
 
@@ -70,7 +71,7 @@ export default {
70 71
         alignItems: 'center',
71 72
         display: 'flex',
72 73
         justifyContent: 'center',
73
-        minHeight: '50%'
74
+        minHeight: '45%'
74 75
     },
75 76
 
76 77
     largeVideoContainerWide: {
@@ -132,6 +133,7 @@ export default {
132 133
         borderColor: SECONDARY_COLOR,
133 134
         borderRadius: BaseTheme.shape.borderRadius,
134 135
         borderWidth: 2,
136
+        height: BaseTheme.spacing[7],
135 137
         marginHorizontal: BaseTheme.spacing[3],
136 138
         padding: BaseTheme.spacing[2]
137 139
     },
@@ -143,6 +145,7 @@ export default {
143 145
     },
144 146
 
145 147
     fieldLabel: {
148
+        ...BaseTheme.typography.heading6,
146 149
         color: BaseTheme.palette.text01,
147 150
         marginVertical: BaseTheme.spacing[4],
148 151
         textAlign: 'center'
@@ -200,7 +203,9 @@ export default {
200 203
     },
201 204
 
202 205
     primaryButtonText: {
203
-        color: BaseTheme.palette.text01
206
+        ...BaseTheme.typography.labelButtonLarge,
207
+        color: BaseTheme.palette.text01,
208
+        lineHeight: 30
204 209
     },
205 210
 
206 211
     primaryText: {
@@ -216,7 +221,9 @@ export default {
216 221
     },
217 222
 
218 223
     cancelButtonText: {
219
-        color: BaseTheme.palette.text01
224
+        ...BaseTheme.typography.labelButtonLarge,
225
+        color: BaseTheme.palette.text01,
226
+        lineHeight: 30
220 227
     },
221 228
 
222 229
     // KnockingParticipantList

Loading…
Отказ
Запис