@@ -19,27 +19,26 @@ limitations under the License.
1919 /* This fixes wrapping of long room names, but breaks drag & drop previews */
2020 /* display: table-row; */
2121 font-size : 13px ;
22- position : relative ;
22+ display : block ;
2323}
2424
2525. mx_RoomTile_avatar {
26- display : table-cell;
27- padding-right : 11px ;
26+ display : inline-block;
2827 padding-top : 6px ;
2928 padding-bottom : 6px ;
3029 padding-left : 18px ;
3130 width : 24px ;
3231 height : 24px ;
33- position : relative;
3432 vertical-align : middle;
3533}
3634
3735. mx_RoomTile_name {
38- display : table-cell ;
39- width : 100 % ;
36+ display : inline-block ;
37+ width : 100 px ;
4038 vertical-align : middle;
4139 overflow : hidden;
4240 word-break : break-word;
41+ padding-left : 15px ;
4342 padding-right : 15px ;
4443 color : rgba ( 69 , 69 , 69 , 0.8 ) ;
4544}
@@ -59,22 +58,23 @@ limitations under the License.
5958}
6059
6160. collapsed . mx_RoomTile_badge {
62- margin-top : -15 px ;
63- right : 7 px ;
61+ bottom : 40 px ;
62+ left : 30 px ;
6463 min-width : 12px ;
6564 height : 16px ;
6665 border-radius : 16px ;
6766 padding : 0px 4px 0px 4px ;
6867 z-index : 200 ;
6968}
7069
70+ /* This is the bottom of the speech bubble */
7171. mx_RoomTile_highlight . mx_RoomTile_badge : after {
7272 content : "" ;
7373 position : absolute;
7474 display : block;
7575 width : 0 ;
7676 height : 0 ;
77- margin-left : 7 px ;
77+ margin-left : 4 px ;
7878 border-top : 8px solid # ff0064;
7979 border-right : 10px solid transparent;
8080}
@@ -86,18 +86,20 @@ style are the same, this style needs to be AFTER it to take effect when matched
8686}
8787
8888. mx_RoomTile_badge {
89- min-width : 15px ;
89+ display : inline-block;
90+ min-width : 12px ;
9091 height : 18px ;
91- position : absolute ;
92- right : 16 px ;
92+ position : relative ;
93+ right : 4 px ;
9394 top : 50% ;
94- margin-top : -8px ;
9595 border-radius : 18px ;
9696 color : # fff;
9797 font-weight : bold;
9898 font-size : 11px ;
9999 text-align : center;
100- padding : 2px 6px 0px 5px ;
100+ padding-top : 2px ;
101+ padding-left : 5px ;
102+ padding-right : 5px ;
101103}
102104
103105. mx_RoomTile_unreadNotify . mx_RoomTile_badge {
@@ -108,24 +110,12 @@ style are the same, this style needs to be AFTER it to take effect when matched
108110 background-color : # ff0064;
109111}
110112
111- . mx_RoomTile_unread ,
112- . mx_RoomTile_highlight {
113- font-weight : bold;
114- }
115-
116- /* the inner highlight span has 4px of padding on it, so we shrink the _avatar by 4px and grow the _name by 4px to fit it in */
117- . mx_RoomTile_selected . mx_RoomTile_name {
118- padding-right : 19px ;
119- }
120- . mx_RoomTile_selected . mx_RoomTile_avatar {
121- padding-right : 7px ;
113+ . mx_RoomTile_badge . mx_RoomTile_badge_no_unread {
114+ background-color : rgba ( 74 , 73 , 74 , 0.2 ) ;
122115}
123116
124- /* leave room for the badge, if present.
125- N.B. this has to come after the above _selected width tweaks */
126- . mx_RoomTile_unreadNotify . mx_RoomTile_name ,
127- . mx_RoomTile_highlight . mx_RoomTile_name {
128- padding-right : 40px ;
117+ . mx_RoomTile_unread , . mx_RoomTile_highlight {
118+ font-weight : bold;
129119}
130120
131121. mx_RoomTile_selected . mx_RoomTile_name span {
@@ -139,12 +129,6 @@ style are the same, this style needs to be AFTER it to take effect when matched
139129 background-color : rgba ( 118 , 207 , 166 , 0.2 ) ;
140130}
141131
142- /* stop the span from overlapping with the badge */
143- . mx_RoomTile_unreadNotify . mx_RoomTile_selected . mx_RoomTile_name span ,
144- . mx_RoomTile_highlight . mx_RoomTile_selected . mx_RoomTile_name span {
145- padding-right : 22px ;
146- }
147-
148132. mx_RoomTile_arrow {
149133 position : absolute;
150134 right : 0px ;
0 commit comments