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

correctly align read receipts to state events in bubble layout #8419

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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