Skip to content

Commit f4a2b6a

Browse files
committed
Merge pull request element-hq#697 from vector-im/matthew/roompreview
Lots of CSS bugfixes and polishing
2 parents 39eb0f9 + 6117e09 commit f4a2b6a

12 files changed

Lines changed: 150 additions & 86 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/UserSettings.css‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ limitations under the License.
143143
font-size: 16px;
144144
}
145145

146+
.mx_UserSettings_changePasswordButton {
147+
float: right;
148+
margin-right: 32px;
149+
margin-left: 32px;
150+
margin-top: -54px;
151+
}
152+
146153
.mx_UserSettings_logout {
147154
float: right;
148155
margin-right: 32px;
@@ -156,10 +163,6 @@ limitations under the License.
156163
cursor: pointer;
157164
}
158165

159-
.mx_UserSettings_avatarPicker .mx_RoomAvatar {
160-
border-radius: 40px;
161-
}
162-
163166
.mx_UserSettings_avatarPicker_edit {
164167
text-align: center;
165168
margin-top: 10px;

‎src/skins/vector/css/matrix-react-sdk/views/avatars/BaseAvatar.css‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ limitations under the License.
2525
text-align: center;
2626
speak: none;
2727
pointer-events: none;
28+
font-weight: normal;
2829
}
2930

3031
.mx_BaseAvatar_image {
31-
border-radius: 20px;
32+
border-radius: 40px;
3233
vertical-align: top;
3334
}

‎src/skins/vector/css/matrix-react-sdk/views/avatars/RoomAvatar.css‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 16 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 {
@@ -43,6 +40,14 @@ limitations under the License.
4340
position: relative;
4441
}
4542

43+
.mx_EntityTile_power {
44+
position: absolute;
45+
width: 16px;
46+
height: 17px;
47+
top: 0px;
48+
right: 6px;
49+
}
50+
4651
.mx_EntityTile_name {
4752
display: table-cell;
4853
vertical-align: middle;
@@ -83,4 +88,11 @@ limitations under the License.
8388
opacity: 0.25;
8489
}
8590

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+
8698

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ limitations under the License.
3131
top: 0px;
3232
}
3333

34-
.mx_EventTile_avatar img {
35-
border-radius: 20px;
36-
border: 0px;
37-
}
38-
3934
.mx_EventTile_continuation {
4035
margin-top: 8px ! important;
4136
}

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ limitations under the License.
3232
clear: both;
3333
}
3434

35-
.mx_MemberInfo_avatar img {
36-
border-radius: 48px;
37-
}
38-
3935
.mx_MemberInfo_profile {
4036
margin-bottom: 16px;
4137
}

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

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,41 @@ limitations under the License.
4444
flex: 1 1 0px;
4545
}
4646

47-
.mx_MemberList_invite {
48-
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
49-
border-radius: 3px;
50-
border: 1px solid #f0f0f0;
51-
padding: 9px;
52-
color: #454545;
53-
margin-left: 3px;
54-
font-size: 15px;
55-
margin-bottom: 8px;
56-
width: 180px;
47+
.mx_MemberList .mx_SearchableEntityList {
48+
order: 1;
49+
flex: 0;
50+
-webkit-flex: 0;
5751
}
5852

59-
.mx_MemberList_invite::-moz-placeholder {
60-
color: #454545;
61-
opacity: 0.5;
53+
.mx_MemberList .mx_SearchableEntityList_expanded {
54+
flex: 1 1 0;
55+
-webkit-flex: 1 1 0;
6256
}
63-
.mx_MessageList_invite::-webkit-input-placeholder {
64-
color: #454545;
65-
opacity: 0.5;
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;
6682
}
6783

6884
.mx_MemberList_invited h2 {
@@ -76,8 +92,13 @@ limitations under the License.
7692
margin-bottom: 4px;
7793
}
7894

95+
/* we have to have display: table in order for the horizontal wrapping to work */
7996
.mx_MemberList_wrapper {
80-
display: table;
97+
display: table;
8198
table-layout: fixed;
8299
width: 100%;
83100
}
101+
102+
.mx_MemberList_outerWrapper {
103+
height: 0px;
104+
}

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ limitations under the License.
194194

195195
.mx_RoomHeader_editable {
196196
border-bottom: 1px solid #c7c7c7 ! important;
197-
min-width: 70px;
197+
min-width: 150px;
198198
cursor: text;
199199
}
200200

@@ -224,10 +224,6 @@ limitations under the License.
224224
vertical-align: middle;
225225
}
226226

227-
.mx_RoomHeader_avatar .mx_RoomAvatar {
228-
border-radius: 24px;
229-
}
230-
231227
.mx_RoomHeader_avatarPicker_edit {
232228
position: absolute;
233229
margin-left: 16px;

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

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ limitations under the License.
6060
*/
6161

6262
.mx_RoomSettings .mx_RoomSettings_toggles label {
63-
margin-bottom: 10px;
63+
margin-bottom: 8px;
6464
display: block;
6565
}
6666

@@ -74,7 +74,7 @@ limitations under the License.
7474
}
7575

7676
.mx_RoomSettings .mx_RoomSettings_tags {
77-
margin-bottom: 10px;
77+
margin-bottom: 8px;
7878
}
7979

8080
.mx_RoomSettings .mx_RoomSettings_roomColor {
@@ -99,29 +99,48 @@ limitations under the License.
9999
width: 100%;
100100
}
101101

102+
.mx_RoomSettings .mx_RoomSettings_aliasLabel {
103+
margin-bottom: 8px;
104+
}
105+
102106
.mx_RoomSettings .mx_RoomSettings_aliasesTable {
103107
margin-top: 12px;
104-
margin-bottom: 12px;
108+
margin-bottom: 0px;
105109
margin-left: 56px;
106110
display: table;
107111
}
108112

109-
.mx_RoomSettings .mx_RoomSettings_aliasesRow {
113+
.mx_RoomSettings .mx_RoomSettings_aliasesTableRow {
110114
display: table-row;
115+
margin-bottom: 16px;
111116
}
112117

113118
.mx_RoomSettings .mx_RoomSettings_alias {
114-
display: table-cell;
115-
margin-bottom: 20px;
119+
max-width: 400px;
120+
margin-bottom: 16px;
121+
/*
122+
commented out so margin applies
123+
display: table-cell; */
116124
}
117125

118126
.mx_RoomSettings .mx_RoomSettings_addAlias,
119127
.mx_RoomSettings .mx_RoomSettings_deleteAlias {
120128
display: table-cell;
121129
padding-left: 0.5em;
130+
position: relative;
122131
cursor: pointer;
123132
}
124133

134+
.mx_RoomSettings .mx_RoomSettings_addAlias img,
135+
.mx_RoomSettings .mx_RoomSettings_deleteAlias img {
136+
visibility: hidden;
137+
}
138+
139+
.mx_RoomSettings .mx_RoomSettings_aliasesTableRow:hover .mx_RoomSettings_addAlias img,
140+
.mx_RoomSettings .mx_RoomSettings_aliasesTableRow:hover .mx_RoomSettings_deleteAlias img {
141+
visibility: visible;
142+
}
143+
125144
.mx_RoomSettings_editable {
126145
border: 0px;
127146
border-bottom: 1px solid #c7c7c7;
@@ -150,10 +169,6 @@ limitations under the License.
150169
color: #a2a2a2;
151170
}
152171

153-
.mx_RoomSettings .mx_RoomAvatar {
154-
border-radius: 120px;
155-
}
156-
157172
.mx_RoomSettings_buttons {
158173
text-align: right;
159174
margin-bottom: 16px;

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ limitations under the License.
3333
vertical-align: middle;
3434
}
3535

36-
.mx_RoomTile_avatar img {
37-
border-radius: 20px;
38-
}
39-
4036
.mx_RoomTile_name {
4137
display: table-cell;
4238
width: 100%;

0 commit comments

Comments
 (0)