@@ -27,22 +27,38 @@ limitations under the License.
2727 padding-top : 6px ;
2828 padding-bottom : 6px ;
2929 padding-left : 18px ;
30+ padding-right : 6px ;
3031 width : 24px ;
3132 height : 24px ;
3233 vertical-align : middle;
3334}
3435
3536. mx_RoomTile_name {
3637 display : inline-block;
38+ position : relative;
3739 width : 100px ;
3840 vertical-align : middle;
3941 overflow : hidden;
40- word-break : break-word;
41- padding-left : 11px ;
42+ /* word-break: break-word; */
43+ white-space : nowrap;
44+ padding-left : 5px ;
4245 padding-right : 15px ;
46+ padding-top : 2px ;
47+ padding-bottom : 2px ;
4348 color : rgba ( 69 , 69 , 69 , 0.8 ) ;
4449}
4550
51+ . mx_RoomTile_name : before {
52+ content : '' ;
53+ width : 100px ;
54+ height : 22px ;
55+ top : 0px ;
56+ left : 0px ;
57+ position : absolute;
58+ padding-left : 20px ;
59+ background : linear-gradient ( to right, rgba ( 234 , 245 , 240 , 0 ) 80% , # eaf5f0 99% ) ;
60+ }
61+
4662. mx_RoomTile_ellipsis . mx_RoomTile_name {
4763 font-style : italic;
4864 color : # 454545;
@@ -53,14 +69,14 @@ limitations under the License.
5369*/
5470}
5571
56- . collapsed . mx_RoomTile_name {
57- display : none;
58- }
59-
6072. collapsed . mx_RoomTile {
6173 height : 36px ;
6274}
6375
76+ . collapsed . mx_RoomTile_name {
77+ display : none;
78+ }
79+
6480. collapsed . mx_RoomTile_badge {
6581 top : -40px ;
6682 left : 30px ;
@@ -71,6 +87,11 @@ limitations under the License.
7187 z-index : 200 ;
7288}
7389
90+ /* Hide the bottom of speech bubble */
91+ . collapsed . mx_RoomTile_highlight . mx_RoomTile_badge : after {
92+ display : none;
93+ }
94+
7495/* This is the bottom of the speech bubble */
7596. mx_RoomTile_highlight . mx_RoomTile_badge : after {
7697 content : "" ;
@@ -83,30 +104,24 @@ limitations under the License.
83104 border-right : 10px solid transparent;
84105}
85106
86- /* Because the specificity of this and the above ".mx_RoomTile_highlight .mx_RoomTile_badge:after"
87- style are the same, this style needs to be AFTER it to take effect when matched */
88- . collapsed . mx_RoomTile_badge : after {
89- display : none;
90- }
91-
92107. mx_RoomTile_badge {
93108 display : inline-block;
94109 min-width : 14px ;
95- height : 18 px ;
110+ height : 17 px ;
96111 position : relative;
97112 left : 8px ;
98113 top : 2px ;
99- border-radius : 18 px ;
114+ border-radius : 14 px ;
100115 color : # fff;
101- font-weight : bold ;
116+ font-weight : 600 ;
102117 font-size : 11px ;
103118 text-align : center;
104- padding-top : 2 px ;
119+ padding-top : 1 px ;
105120 padding-left : 4px ;
106121 padding-right : 4px ;
107122}
108123
109- . mx_RoomTile_badge : hover {
124+ . mx_RoomTile . mx_RoomTile_badge . mx_RoomTile_badgeButton {
110125 letter-spacing : 0.1em ;
111126 opacity : 1 ;
112127}
@@ -119,7 +134,7 @@ style are the same, this style needs to be AFTER it to take effect when matched
119134 background-color : # ff0064;
120135}
121136
122- . mx_RoomTile_badge_no_unread {
137+ . mx_RoomTile_read . mx_RoomTile_badge {
123138 background-color : rgb ( 214 , 214 , 214 ) ;
124139 opacity : 0 ;
125140}
@@ -128,14 +143,7 @@ style are the same, this style needs to be AFTER it to take effect when matched
128143 font-weight : bold;
129144}
130145
131- . mx_RoomTile_selected . mx_RoomTile_name span {
132- display : inline-block;
133- position : relative;
134- width : 100% ;
135- padding : 4px ;
136- margin-top : -4px ;
137- margin-bottom : -4px ;
138- border-radius : 2px ;
146+ . mx_RoomTile_selected . mx_RoomTile_name {
139147 background-color : rgba ( 118 , 207 , 166 , 0.2 ) ;
140148}
141149
0 commit comments