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

Commit f54d54b

Browse files
authored
Fix MessageTimestamp position next to redacted messages on IRC/modern layout (#8591)
1 parent e6ec01f commit f54d54b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

res/css/views/messages/_ViewSourceEvent.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ limitations under the License.
2020
font-size: $font-12px;
2121
width: 100%;
2222
overflow-x: auto; // Cancel overflow setting of .mx_EventTile_content
23+
line-height: normal; // Align with avatar and E2E icon
2324

2425
pre,
2526
code {

res/css/views/right_panel/_ThreadPanel.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,12 @@ limitations under the License.
258258
}
259259

260260
&:not([data-layout=bubble]) {
261+
.mx_MessageTimestamp {
262+
top: 2px; // Align with avatar
263+
}
264+
261265
.mx_EventTile_avatar {
262-
top: 1.5px;
266+
top: 0; // Align with hidden event content
263267
left: calc($MessageTimestamp_width + 14px - 4px); // 14px: avatar width, 4px: align with text
264268
z-index: 9; // position above the hover styling
265269
}

res/css/views/rooms/_EventTile.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
116116

117117
.mx_EventTile_line {
118118
padding: 3px 0 2px; // Align with mx_EventTile_avatar and mx_EventTile_e2eIcon
119+
120+
.mx_MessageTimestamp {
121+
top: 0;
122+
}
119123
}
120124
}
121125

@@ -278,7 +282,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
278282
.mx_GenericEventListSummary:not([data-layout=bubble]) {
279283
.mx_EventTile_line {
280284
padding-left: $left-gutter;
281-
line-height: normal;
282285

283286
.mx_RedactedBody {
284287
line-height: 1; // remove spacing between lines

0 commit comments

Comments
 (0)