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

Commit 4dfea3f

Browse files
committed
fix: clarify intent of alignment
1 parent abdcf72 commit 4dfea3f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

res/css/views/rooms/_EventBubbleTile.scss

Lines changed: 5 additions & 2 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: -1px;
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

0 commit comments

Comments
 (0)