Skip to content

Commit 6117e09

Browse files
committed
implement the correct design for memberlist
1 parent 1fd60f1 commit 6117e09

3 files changed

Lines changed: 88 additions & 8 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/rooms/EntityTile.css‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ limitations under the License.
2525
display: table-cell;
2626
vertical-align: middle;
2727
margin-left: 10px;
28-
}
29-
30-
.mx_EntityTile:hover .mx_MessageTimestamp {
31-
display: block;
28+
width: 26px;
3229
}
3330

3431
.mx_EntityTile_avatar {
@@ -91,4 +88,11 @@ limitations under the License.
9188
opacity: 0.25;
9289
}
9390

91+
.mx_EntityTile_unknown .mx_EntityTile_avatar,
92+
.mx_EntityTile_unknown .mx_EntityTile_name,
93+
.mx_EntityTile_unknown .mx_EntityTile_name_hover
94+
{
95+
opacity: 0.25;
96+
}
97+
9498

‎src/skins/vector/css/matrix-react-sdk/views/rooms/MemberList.css‎

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,43 @@ limitations under the License.
4444
flex: 1 1 0px;
4545
}
4646

47+
.mx_MemberList .mx_SearchableEntityList {
48+
order: 1;
49+
flex: 0;
50+
-webkit-flex: 0;
51+
}
52+
53+
.mx_MemberList .mx_SearchableEntityList_expanded {
54+
flex: 1 1 0;
55+
-webkit-flex: 1 1 0;
56+
}
57+
58+
.mx_MemberList_joined {
59+
order: 2;
60+
flex: 1 1 auto;
61+
-webkit-flex: 1 1 auto;
62+
63+
overflow-y: auto;
64+
}
65+
66+
/*
67+
.mx_MemberList_invited {
68+
order: 3;
69+
flex: 0 0 100px;
70+
-webkit-flex: 0 0 100px;
71+
overflow-y: auto;
72+
}
73+
*/
74+
75+
.mx_MemberList_bottom {
76+
order: 4;
77+
flex: 0 0 72px;
78+
-webkit-flex: 0 0 72px;
79+
80+
border-top: 2px solid #e1dddd;
81+
margin-right: 15px;
82+
}
83+
4784
.mx_MemberList_invited h2 {
4885
text-transform: uppercase;
4986
color: #3d3b39;
@@ -55,8 +92,13 @@ limitations under the License.
5592
margin-bottom: 4px;
5693
}
5794

95+
/* we have to have display: table in order for the horizontal wrapping to work */
5896
.mx_MemberList_wrapper {
59-
display: table;
97+
display: table;
6098
table-layout: fixed;
6199
width: 100%;
62100
}
101+
102+
.mx_MemberList_outerWrapper {
103+
height: 0px;
104+
}

‎src/skins/vector/css/matrix-react-sdk/views/rooms/SearchableEntityList.css‎

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
.mx_SearchableEntityList {
18+
flex: 1;
19+
-webkit-flex: 1;
20+
21+
display: flex;
22+
display: -webkit-flex;
23+
24+
flex-direction: column;
25+
-webkit-flex-direction: column;
26+
}
27+
1728
.mx_SearchableEntityList_query {
1829
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
1930
border-radius: 3px;
@@ -30,18 +41,41 @@ limitations under the License.
3041
color: #454545;
3142
opacity: 0.5;
3243
}
44+
3345
.mx_SearchableEntityList_query::-webkit-input-placeholder {
3446
color: #454545;
3547
opacity: 0.5;
3648
}
3749

50+
.mx_SearchableEntityList_listWrapper {
51+
flex: 1;
52+
-webkit-flex: 1;
53+
54+
overflow-y: auto;
55+
}
56+
3857
.mx_SearchableEntityList_list {
3958
display: table;
4059
table-layout: fixed;
4160
width: 100%;
42-
border-bottom: 1px solid #e1dddd;
4361
}
4462

45-
.mx_SearchableEntityList_list:empty {
46-
border-bottom: 0px;
63+
.mx_SearchableEntityList_list .mx_EntityTile_chevron {
64+
display: none;
65+
}
66+
67+
.mx_SearchableEntityList_hrWrapper {
68+
width: 100%;
69+
flex: 0px;
70+
-webkit-flex: 0;
71+
}
72+
73+
.mx_SearchableEntityList hr {
74+
height: 1px;
75+
border: 0px;
76+
color: #e1dddd;
77+
background-color: #e1dddd;
78+
margin-right: 15px;
79+
margin-top: 11px;
80+
margin-bottom: 11px;
4781
}

0 commit comments

Comments
 (0)