Browse Source

feat(native-participants-pane) updated styles for meeting participant list

master
Calin Chitu 4 years ago
parent
commit
34ccd56691

+ 2
- 2
react/features/participants-pane/components/native/MeetingParticipantList.js View File

@@ -15,8 +15,8 @@ export const MeetingParticipantList = () => {
15 15
     const { t } = useTranslation();
16 16
 
17 17
     return (
18
-        <View style = { styles.lobbyList }>
19
-            <Text style = { styles.lobbyListDescription }>
18
+        <View style = { styles.meetingList }>
19
+            <Text style = { styles.meetingListDescription }>
20 20
                 {t('participantsPane.headings.participantsList',
21 21
                     { count: participants.length })}
22 22
             </Text>

+ 36
- 13
react/features/participants-pane/components/native/styles.js View File

@@ -8,6 +8,26 @@ const participantState = {
8 8
     justifyContent: 'center'
9 9
 };
10 10
 
11
+/**
12
+ * The style for participant list.
13
+ */
14
+const participantList = {
15
+    marginLeft: 16,
16
+    marginRight: 16,
17
+    position: 'relative'
18
+};
19
+
20
+/**
21
+ * The style for participant list description.
22
+ */
23
+const participantListDescription = {
24
+    color: BaseTheme.palette.text01,
25
+    paddingBottom: 8,
26
+    paddingTop: 8,
27
+    position: 'relative',
28
+    width: '55%'
29
+};
30
+
11 31
 /**
12 32
  * The style for content.
13 33
  */
@@ -186,9 +206,13 @@ export default {
186 206
         top: 4
187 207
     },
188 208
     lobbyList: {
189
-        marginLeft: 16,
190
-        marginRight: 16,
191
-        position: 'relative'
209
+        ...participantList,
210
+        marginTop: 8
211
+    },
212
+
213
+    meetingList: {
214
+        ...participantList,
215
+        marginTop: 16
192 216
     },
193 217
 
194 218
     lobbyListDetails: {
@@ -196,18 +220,16 @@ export default {
196 220
         display: 'flex',
197 221
         flexDirection: 'row',
198 222
         overflow: 'hidden',
199
-        paddingBottom: 16,
200
-        paddingTop: 16,
201 223
         position: 'relative',
202 224
         width: '100%'
203 225
     },
204 226
 
205 227
     lobbyListDescription: {
206
-        color: BaseTheme.palette.text01,
207
-        paddingBottom: 8,
208
-        paddingTop: 8,
209
-        position: 'relative',
210
-        width: '55%'
228
+        ...participantListDescription
229
+    },
230
+
231
+    meetingListDescription: {
232
+        ...participantListDescription
211 233
     },
212 234
 
213 235
     lobbyListActions: {
@@ -223,7 +245,7 @@ export default {
223 245
         flexDirection: 'row',
224 246
         height: 88,
225 247
         paddingRight: 16,
226
-        position: 'absolute',
248
+        position: 'relative',
227 249
         right: 0,
228 250
         left: 0
229 251
     },
@@ -236,7 +258,7 @@ export default {
236 258
         flexDirection: 'row',
237 259
         height: 88,
238 260
         paddingRight: 16,
239
-        position: 'absolute',
261
+        position: 'relative',
240 262
         right: 0,
241 263
         left: 0
242 264
     },
@@ -255,7 +277,8 @@ export default {
255 277
     },
256 278
 
257 279
     inviteButton: {
258
-        backgroundColor: BaseTheme.palette.action01
280
+        backgroundColor: BaseTheme.palette.action01,
281
+        marginTop: 8
259 282
     },
260 283
 
261 284
     inviteLabel: {

Loading…
Cancel
Save