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

Commit 6d1aea4

Browse files
authored
Fix: Message shield alignment is not right. (#11703)
* Message shield alignment fixed * Alignment fixed in all layouts * Fixed for all font sizes
1 parent 15d931a commit 6d1aea4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

res/css/views/rooms/_EventBubbleTile.pcss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ limitations under the License.
332332

333333
.mx_EventTile_e2eIcon {
334334
flex-shrink: 0; /* keep it at full size */
335+
336+
// Keep height equal to text for shield alignment, additional 2px because of 1px padding on text
337+
height: calc($font-18px + 2px);
335338
}
336339
}
337340

res/css/views/rooms/_EventTile.pcss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,11 @@ $left-gutter: 64px;
485485
}
486486

487487
.mx_EventTile_e2eIcon {
488-
inset: 6px 0 0 44px;
488+
inset: 0 0 0 44px;
489+
490+
// Keep height equal to text for alignment
491+
height: var(--EventTile_group_line-line-height);
492+
margin: 1px;
489493
}
490494

491495
.mx_EventTile_msgOption {
@@ -1350,7 +1354,6 @@ $left-gutter: 64px;
13501354
.mx_EventTile[data-layout="group"] {
13511355
--MatrixChat_useCompactLayout_group-padding-top: $spacing-4;
13521356
--MatrixChat_useCompactLayout-top-avatar: 2px;
1353-
--MatrixChat_useCompactLayout-top-e2eIcon: 3px;
13541357
--MatrixChat_useCompactLayout_line-spacing-block: 0px;
13551358

13561359
padding-top: var(--MatrixChat_useCompactLayout_group-padding-top);
@@ -1410,7 +1413,7 @@ $left-gutter: 64px;
14101413
}
14111414

14121415
.mx_EventTile_e2eIcon {
1413-
top: var(--MatrixChat_useCompactLayout-top-e2eIcon);
1416+
margin: 0px;
14141417
}
14151418

14161419
.mx_DisambiguatedProfile {

0 commit comments

Comments
 (0)