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

Commit

Permalink
correctly align read receipts to state events in bubble layout (#8419)
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne authored Apr 28, 2022
1 parent 472222c commit 6120ada
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions res/css/views/rooms/_EventBubbleTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6120ada

Please sign in to comment.