From 6120adaeddb50dde3d187fd855f77abeaa32f64c Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski Date: Thu, 28 Apr 2022 15:39:17 +0200 Subject: [PATCH] correctly align read receipts to state events in bubble layout (#8419) --- res/css/views/rooms/_EventBubbleTile.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/res/css/views/rooms/_EventBubbleTile.scss b/res/css/views/rooms/_EventBubbleTile.scss index 0f2ec1dc20..1b0c40a839 100644 --- a/res/css/views/rooms/_EventBubbleTile.scss +++ b/res/css/views/rooms/_EventBubbleTile.scss @@ -449,8 +449,11 @@ limitations under the License. .mx_ReadReceiptGroup { position: absolute; - right: -78px; // as close to right gutter without clipping as possible - bottom: 0; + // as close to right gutter without clipping as possible + right: -78px; + // (EventTileLine.line-height - ReadReceiptGroup.height) / 2 + // this centers the ReadReceiptGroup if we’ve got a single line + bottom: calc(($font-18px - 24px) / 2); top: auto; } @@ -586,7 +589,7 @@ limitations under the License. } .mx_ReadReceiptGroup { - right: -14px; // match alignment to RRs of chat bubbles + right: -18px; // match alignment to RRs of chat bubbles } &::before {