Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 9b9ecf9

Browse files
authored
Fix avatar position of hidden event on ThreadView (#8592)
1 parent f51a6b6 commit 9b9ecf9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

res/css/views/right_panel/_ThreadPanel.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,15 @@ limitations under the License.
239239

240240
&.mx_ThreadView .mx_EventTile {
241241
// handling for hidden events (e.g reactions) in the thread view
242+
243+
&:not([data-layout=bubble]) {
244+
&:hover.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
245+
&:hover.mx_EventTile_unverified.mx_EventTile_info .mx_EventTile_line,
246+
&:hover.mx_EventTile_unknown.mx_EventTile_info .mx_EventTile_line {
247+
padding-inline-start: 0; // Override
248+
}
249+
}
250+
242251
&.mx_EventTile_info {
243252
padding-top: 0;
244253

@@ -263,20 +272,22 @@ limitations under the License.
263272
}
264273

265274
.mx_EventTile_avatar {
266-
top: 0; // Align with hidden event content
267275
left: calc($MessageTimestamp_width + 14px - 4px); // 14px: avatar width, 4px: align with text
268276
z-index: 9; // position above the hover styling
269277
}
270278
}
271279

272280
&[data-layout=bubble] {
273281
.mx_EventTile_avatar {
274-
left: 30px;
282+
inset-inline-start: 0;
275283
}
276284
}
277285

278286
.mx_EventTile_avatar {
279287
position: absolute;
288+
top: 1.5px; // Align with hidden event content
289+
margin-top: 0;
290+
margin-bottom: 0;
280291
width: 14px; // avatar img size
281292
height: 14px; // avatar img size
282293
}

0 commit comments

Comments
 (0)