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

Commit 37d8cfb

Browse files
authored
Fix read receipts group position on TimelineCard in compact modern/group layout (#8971)
1 parent 9328dca commit 37d8cfb

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

res/css/views/right_panel/_TimelineCard.scss

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ limitations under the License.
5050

5151
&[data-layout=irc],
5252
&[data-layout=group] {
53+
--TimelineCard_ReadReceiptGroup-inset-block-start: -6px;
54+
5355
&.mx_EventTile_info .mx_EventTile_line,
5456
.mx_EventTile_line {
5557
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
@@ -97,6 +99,10 @@ limitations under the License.
9799
margin-inline-end: $spacing-8; // See: var(--ThreadView_group_spacing-end) for ReactionsRow on _EventTile.scss
98100
}
99101

102+
.mx_ReadReceiptGroup {
103+
top: var(--TimelineCard_ReadReceiptGroup-inset-block-start);
104+
}
105+
100106
.mx_ThreadSummary {
101107
margin-inline-end: 0;
102108
max-width: min(calc(100% - 36px), 600px);
@@ -110,6 +116,15 @@ limitations under the License.
110116
}
111117
}
112118

119+
&[data-layout=group] {
120+
// Read receipt group on compact modern layout
121+
// This is required because mx_TimelineCard is a child element wrapped by mx_MatrixChat_useCompactLayout,
122+
// which specifies the default position of mx_ReadReceiptGroup on compact modern layout.
123+
.mx_MatrixChat_useCompactLayout & .mx_ReadReceiptGroup {
124+
top: var(--TimelineCard_ReadReceiptGroup-inset-block-start);
125+
}
126+
}
127+
113128
&[data-layout=bubble] {
114129
&::before {
115130
z-index: auto; // enable background color on hover
@@ -141,10 +156,6 @@ limitations under the License.
141156
}
142157
}
143158

144-
.mx_ReadReceiptGroup {
145-
top: -6px;
146-
}
147-
148159
.mx_WhoIsTypingTile {
149160
margin-left: -12px; // undo padding on the message list
150161
}

0 commit comments

Comments
 (0)