Browse Source

fix(lobby): Knocking participants list for small widths

j8
Vlad Piersec 4 years ago
parent
commit
eb41a306a6
2 changed files with 53 additions and 29 deletions
  1. 49
    27
      css/_lobby.scss
  2. 4
    2
      react/features/lobby/components/web/KnockingParticipantList.js

+ 49
- 27
css/_lobby.scss View File

@@ -9,7 +9,7 @@
9 9
             .spinner {
10 10
                 margin: 30px;
11 11
             }
12
-    
12
+
13 13
             .joining-message {
14 14
                 margin: 10px;
15 15
             }
@@ -49,7 +49,7 @@
49 49
     position: fixed;
50 50
     top: 20;
51 51
     transition: top 1s ease;
52
-    z-index: 100;
52
+    z-index: $toolbarZ + 1;
53 53
 
54 54
     &.toolbox-visible {
55 55
         // Same as toolbox subject position
@@ -62,31 +62,6 @@
62 62
         padding: 15px
63 63
     }
64 64
 
65
-    ul {
66
-        list-style-type: none;
67
-        padding: 0 15px 15px 15px;
68
-
69
-        li {
70
-            align-items: center;
71
-            display: flex;
72
-            flex-direction: row;
73
-            margin: 8px 0;
74
-
75
-            .details {
76
-                display: flex;
77
-                flex: 1;
78
-                flex-direction: column;
79
-                justify-content: space-evenly;
80
-                margin: 0 30px 0 10px;
81
-            }
82
-
83
-            button {
84
-                align-self: unset;
85
-                margin: 0 5px;
86
-            }
87
-        }
88
-    }
89
-
90 65
     button {
91 66
         align-self: stretch;
92 67
         margin: 8px 0;
@@ -116,3 +91,50 @@
116 91
         }
117 92
     }
118 93
 }
94
+
95
+.knocking-participants-container {
96
+    list-style-type: none;
97
+    max-height: 600px;
98
+    overflow-y: scroll;
99
+    padding: 0 15px 15px 15px;
100
+}
101
+
102
+.knocking-participant {
103
+    align-items: center;
104
+    display: flex;
105
+    flex-direction: row;
106
+    margin: 8px 0;
107
+
108
+    .details {
109
+        display: flex;
110
+        flex: 1;
111
+        flex-direction: column;
112
+        justify-content: space-evenly;
113
+        margin: 0 30px 0 10px;
114
+    }
115
+
116
+    button {
117
+        align-self: unset;
118
+        margin: 0 5px;
119
+    }
120
+}
121
+
122
+@media (max-width: 300px) {
123
+    #knocking-participant-list {
124
+        margin: 0;
125
+        text-align: center;
126
+        width: 100%;
127
+
128
+        .avatar {
129
+            display: none;
130
+        }
131
+    }
132
+
133
+    .knocking-participant {
134
+        flex-direction: column;
135
+
136
+        .details {
137
+            margin: 0;
138
+        }
139
+    }
140
+}

+ 4
- 2
react/features/lobby/components/web/KnockingParticipantList.js View File

@@ -42,9 +42,11 @@ class KnockingParticipantList extends AbstractKnockingParticipantList<Props> {
42 42
                 <span className = 'title'>
43 43
                     { t('lobby.knockingParticipantList') }
44 44
                 </span>
45
-                <ul>
45
+                <ul className = 'knocking-participants-container'>
46 46
                     { _participants.map(p => (
47
-                        <li key = { p.id }>
47
+                        <li
48
+                            className = 'knocking-participant'
49
+                            key = { p.id }>
48 50
                             <Avatar
49 51
                                 displayName = { p.name }
50 52
                                 size = { 48 }

Loading…
Cancel
Save