@@ -131,6 +131,10 @@ limitations under the License.
131
131
left : -34px ;
132
132
}
133
133
134
+ .mx_MessageActionBar {
135
+ right : -100px ; // to make sure it doesn't overflow to the left or cover sender profile
136
+ }
137
+
134
138
--backgroundColor : $eventbubble-others-bg ;
135
139
}
136
140
@@ -194,7 +198,10 @@ limitations under the License.
194
198
border-top-left-radius : var (--cornerRadius );
195
199
border-top-right-radius : var (--cornerRadius );
196
200
197
- > a { // timestamp wrapper anchor
201
+ // the selector here is quite weird because timestamps can appear linked & unlinked and in different places
202
+ // in the DOM depending on the specific rendering context
203
+ > a , // timestamp wrapper anchor
204
+ .mx_MessageActionBar + .mx_MessageTimestamp {
198
205
position : absolute ;
199
206
padding : 4px 8px ;
200
207
bottom : 0 ;
@@ -223,7 +230,8 @@ limitations under the License.
223
230
}
224
231
225
232
& .mx_EventTile_sticker {
226
- > a {
233
+ > a , // timestamp wrapper anchor
234
+ .mx_MessageActionBar + .mx_MessageTimestamp {
227
235
// position timestamps for stickers to the right of the un-bubbled sticker
228
236
right : unset ;
229
237
left : 100% ;
@@ -338,7 +346,8 @@ limitations under the License.
338
346
.mx_EventTile_reply {
339
347
max-width : 90% ;
340
348
padding : 0 ;
341
- > a {
349
+ > a , // timestamp wrapper anchor
350
+ .mx_MessageActionBar + .mx_MessageTimestamp {
342
351
display : none !important ;
343
352
}
344
353
}
@@ -439,14 +448,17 @@ limitations under the License.
439
448
margin-left : 9px ;
440
449
}
441
450
442
- .mx_EventTile_line > a { // timestamp wrapper anchor
443
- right : auto ;
444
- left : -77px ;
445
- bottom : unset ;
446
- align-self : center ;
447
-
448
- .mx_MessageTimestamp {
449
- vertical-align : middle ;
451
+ .mx_EventTile_line {
452
+ > a , // timestamp wrapper anchor
453
+ .mx_MessageActionBar + .mx_MessageTimestamp {
454
+ right : auto ;
455
+ left : -77px ;
456
+ bottom : unset ;
457
+ align-self : center ;
458
+
459
+ .mx_MessageTimestamp , & .mx_MessageTimestamp {
460
+ vertical-align : middle ;
461
+ }
450
462
}
451
463
}
452
464
}
0 commit comments