@@ -14,7 +14,10 @@ See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
1616
17- . mx_RoomHeader {
17+ /* add 12px to the height of the header when editing */
18+ . mx_RoomHeader_editing {
19+ -webit-flex : 0 0 95px ! impor tant;
20+ flex : 0 0 95px ! impor tant;
1821}
1922
2023. mx_RoomHeader_wrapper {
@@ -33,6 +36,10 @@ limitations under the License.
3336 display : flex;
3437}
3538
39+ . mx_RoomHeader_editing . mx_RoomHeader_wrapper {
40+ border-bottom : 1px solid transparent;
41+ }
42+
3643. mx_RoomHeader_leftRow {
3744 margin-left : -2px ;
3845
@@ -98,7 +105,7 @@ limitations under the License.
98105
99106. mx_RoomHeader_info {
100107 display : table-cell;
101- /* height: 48px; */
108+ width : 100 % ;
102109 vertical-align : middle;
103110}
104111
@@ -122,6 +129,7 @@ limitations under the License.
122129
123130. mx_RoomHeader_name {
124131 vertical-align : middle;
132+ width : 100% ;
125133 height : 31px ;
126134 overflow : hidden;
127135 color : # 454545;
@@ -131,6 +139,7 @@ limitations under the License.
131139 padding-right : 16px ;
132140 /* why isn't text-overflow working? */
133141 text-overflow : ellipsis;
142+ border-bottom : 1px solid transparent;
134143}
135144
136145. mx_RoomHeader_nametext {
@@ -155,15 +164,16 @@ limitations under the License.
155164 pointer-events : none;
156165}
157166
158- . mx_RoomHeader_leftRow : hover {
167+ . mx_RoomHeader_name ,
168+ . mx_RoomHeader_avatar {
159169 cursor : pointer;
160170}
161171
162- . mx_RoomHeader_leftRow : hover . mx_RoomHeader_name div : not ( . mx_RoomHeader_editable ) {
172+ . mx_RoomHeader_name : hover div : not ( . mx_RoomHeader_editable ) {
163173 color : # 76cfa6;
164174}
165175
166- . mx_RoomHeader_leftRow : hover . mx_RoomHeader_settingsButton {
176+ . mx_RoomHeader_name : hover . mx_RoomHeader_settingsButton {
167177 visibility : visible;
168178}
169179
@@ -181,38 +191,17 @@ limitations under the License.
181191}
182192
183193. mx_RoomHeader_editable {
184- border-bottom : 1px solid # c7c7c7;
194+ border-bottom : 1px solid # c7c7c7 ! imp or tant ;
185195 min-width : 70px ;
186196 cursor : text;
187197}
188198
189199. mx_RoomHeader_editable : focus {
190- border-bottom : 1px solid # 76CFA6;
200+ border-bottom : 1px solid # 76CFA6 ! imp or tant ;
191201 outline : none;
192202 box-shadow : none;
193203}
194204
195- /*
196- .mx_RoomHeader_nameEditing {
197- padding-left: 8px;
198- padding-right: 16px;
199- margin-top: -5px;
200- }
201-
202- .mx_RoomHeader_name input, .mx_RoomHeader_nameInput {
203- border-radius: 3px;
204- width: 260px;
205- border: 1px solid #c7c7c7;
206- font-weight: 300;
207- font-size: 13px;
208- padding: 9px;
209- }
210-
211- .mx_RoomHeader_nameInput {
212- margin-top: 6px;
213- }
214- */
215-
216205. mx_RoomHeader_topic {
217206 vertical-align : bottom;
218207 float : left;
@@ -223,6 +212,7 @@ limitations under the License.
223212 margin-right : 16px ;
224213 overflow : hidden;
225214 text-overflow : ellipsis;
215+ border-bottom : 1px solid transparent;
226216}
227217
228218. mx_RoomHeader_avatar {
@@ -232,10 +222,20 @@ limitations under the License.
232222 vertical-align : middle;
233223}
234224
235- . mx_RoomHeader_avatar img {
225+ . mx_RoomHeader_avatar . mx_RoomAvatar {
236226 border-radius : 24px ;
237227}
238228
229+ . mx_RoomHeader_avatarPicker_edit {
230+ position : absolute;
231+ margin-left : 16px ;
232+ margin-top : 4px ;
233+ }
234+
235+ . mx_RoomHeader_avatarPicker_edit > input {
236+ display : none;
237+ }
238+
239239. mx_RoomHeader_button {
240240 display : table-cell;
241241 vertical-align : top;
0 commit comments