@@ -40,7 +40,7 @@ limitations under the License.
4040 vertical-align : middle;
4141 overflow : hidden;
4242 word-break : break-word;
43- padding-right : 19 px ;
43+ padding-right : 15 px ;
4444 color : rgba ( 69 , 69 , 69 , 0.8 ) ;
4545}
4646
@@ -70,12 +70,12 @@ limitations under the License.
7070 right : 16px ;
7171 top : 50% ;
7272 margin-top : -8px ;
73- border-radius : 3 px ;
73+ border-radius : 16 px ;
7474 color : # fff;
7575 font-weight : bold;
7676 font-size : 11px ;
7777 text-align : center;
78- padding : 0px 2 px 0px 2 px ;
78+ padding : 0px 4 px 0px 4 px ;
7979}
8080
8181. mx_RoomTile_unreadNotify . mx_RoomTile_badge {
@@ -91,26 +91,22 @@ limitations under the License.
9191 font-weight : bold;
9292}
9393
94- . mx_RoomTile_unreadNotify . mx_RoomTile_name ,
95- . mx_RoomTile_highlight . mx_RoomTile_name {
96- padding-right : 36px ;
97- }
98-
94+ /* the inner highlight span has 4px of padding on it, so we shrink the _avatar by 4pm and grow the _name by 4pm to fit it in */
9995. mx_RoomTile_selected . mx_RoomTile_name {
100- padding-right : 23 px ;
96+ padding-right : 19 px ;
10197}
102-
103- /*
104- .mx_RoomTile_highlight .mx_RoomTile_name {
105- color: #ff0064 ! important;
98+ . mx_RoomTile_selected . mx_RoomTile_avatar {
99+ padding-right : 7px ;
106100}
107- */
108101
109- . mx_RoomTile . mx_RoomTile_selected . mx_RoomTile_avatar {
110- padding-right : 7px ;
102+ /* leave room for the badge, if present.
103+ N.B. this has to come after the above _selected width tweaks */
104+ . mx_RoomTile_unreadNotify . mx_RoomTile_name ,
105+ . mx_RoomTile_highlight . mx_RoomTile_name {
106+ padding-right : 36px ;
111107}
112108
113- . mx_RoomTile . mx_RoomTile_selected . mx_RoomTile_name span {
109+ . mx_RoomTile_selected . mx_RoomTile_name span {
114110 display : inline-block;
115111 position : relative;
116112 width : 100% ;
@@ -121,13 +117,11 @@ limitations under the License.
121117 background-color : rgba ( 118 , 207 , 166 , 0.2 ) ;
122118}
123119
124- /*
125- .mx_RoomTile.mx_RoomTile_selected .mx_RoomTile_name {
126- background: url('img/selected.png');
127- background-repeat: no-repeat;
128- background-position: right center;
120+ /* stop the span from overlapping with the badge */
121+ . mx_RoomTile_unreadNotify . mx_RoomTile_selected . mx_RoomTile_name span ,
122+ . mx_RoomTile_highlight . mx_RoomTile_selected . mx_RoomTile_name span {
123+ padding-right : 22px ;
129124}
130- */
131125
132126. mx_RoomTile_arrow {
133127 position : absolute;
0 commit comments