Skip to content

Commit 93c4fc8

Browse files
committed
switch EditableText to contentEditable; fix auxPanel layout bug in the general case (not just for video)
1 parent 8a156dc commit 93c4fc8

2 files changed

Lines changed: 43 additions & 14 deletions

File tree

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

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ limitations under the License.
4747
}
4848

4949
.mx_RoomHeader_textButton {
50-
height: 48px;
50+
height: 36px;
5151
background-color: #76cfa6;
52-
border-radius: 48px;
52+
border-radius: 36px;
5353
margin-right: 8px;
5454
color: #fff;
55-
line-height: 48px;
55+
line-height: 34px;
56+
margin-top: -2px;
5657
text-align: center;
5758

5859
-webkit-box-ordinal-group: 2;
@@ -69,7 +70,20 @@ limitations under the License.
6970
*/
7071
padding-left: 12px;
7172
padding-right: 12px;
72-
}
73+
}
74+
75+
.mx_RoomHeader_cancelButton {
76+
-webkit-box-ordinal-group: 2;
77+
-moz-box-ordinal-group: 2;
78+
-ms-flex-order: 2;
79+
-webkit-order: 2;
80+
order: 2;
81+
82+
cursor: pointer;
83+
84+
padding-left: 12px;
85+
padding-right: 12px;
86+
}
7387

7488
.mx_RoomHeader_rightRow {
7589
margin-top: 4px;
@@ -107,9 +121,8 @@ limitations under the License.
107121
}
108122

109123
.mx_RoomHeader_name {
110-
cursor: pointer;
111124
vertical-align: middle;
112-
height: 30px;
125+
height: 31px;
113126
overflow: hidden;
114127
color: #454545;
115128
font-weight: bold;
@@ -142,7 +155,11 @@ limitations under the License.
142155
pointer-events: none;
143156
}
144157

145-
.mx_RoomHeader_leftRow:hover .mx_RoomHeader_name {
158+
.mx_RoomHeader_leftRow:hover {
159+
cursor: pointer;
160+
}
161+
162+
.mx_RoomHeader_leftRow:hover .mx_RoomHeader_name div:not(.mx_RoomHeader_editable) {
146163
color: #76cfa6;
147164
}
148165

@@ -159,7 +176,23 @@ limitations under the License.
159176
visibility: visible;
160177
}
161178

179+
.mx_RoomHeader_placeholder {
180+
color: #a2a2a2 ! important;
181+
}
182+
183+
.mx_RoomHeader_editable {
184+
border-bottom: 1px solid #c7c7c7;
185+
min-width: 70px;
186+
cursor: text;
187+
}
162188

189+
.mx_RoomHeader_editable:focus {
190+
border-bottom: 1px solid #76CFA6;
191+
outline: none;
192+
box-shadow: none;
193+
}
194+
195+
/*
163196
.mx_RoomHeader_nameEditing {
164197
padding-left: 8px;
165198
padding-right: 16px;
@@ -178,15 +211,16 @@ limitations under the License.
178211
.mx_RoomHeader_nameInput {
179212
margin-top: 6px;
180213
}
214+
*/
181215

182216
.mx_RoomHeader_topic {
183217
vertical-align: bottom;
184218
float: left;
185219
max-height: 42px;
186220
color: #454545;
187221
font-weight: 300;
188-
padding-left: 19px;
189-
padding-right: 16px;
222+
margin-left: 19px;
223+
margin-right: 16px;
190224
overflow: hidden;
191225
text-overflow: ellipsis;
192226
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ limitations under the License.
1515
*/
1616

1717
.mx_RoomSettings {
18-
max-height: 250px;
1918
padding-top: 12px;
2019
}
2120

@@ -83,10 +82,6 @@ limitations under the License.
8382
border: none;
8483
}
8584

86-
.mx_RoomSettings_description {
87-
width: 330px;
88-
}
89-
9085
.mx_RoomSettings_buttons {
9186
text-align: right;
9287
margin-bottom: 16px;

0 commit comments

Comments
 (0)