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

Commit 6120ada

Browse files
authored
correctly align read receipts to state events in bubble layout (#8419)
1 parent 472222c commit 6120ada

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

res/css/views/rooms/_EventBubbleTile.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,11 @@ limitations under the License.
449449

450450
.mx_ReadReceiptGroup {
451451
position: absolute;
452-
right: -78px; // as close to right gutter without clipping as possible
453-
bottom: 0;
452+
// as close to right gutter without clipping as possible
453+
right: -78px;
454+
// (EventTileLine.line-height - ReadReceiptGroup.height) / 2
455+
// this centers the ReadReceiptGroup if we’ve got a single line
456+
bottom: calc(($font-18px - 24px) / 2);
454457
top: auto;
455458
}
456459

@@ -586,7 +589,7 @@ limitations under the License.
586589
}
587590

588591
.mx_ReadReceiptGroup {
589-
right: -14px; // match alignment to RRs of chat bubbles
592+
right: -18px; // match alignment to RRs of chat bubbles
590593
}
591594

592595
&::before {

0 commit comments

Comments
 (0)