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

Commit

Permalink
Fix read receipts group position on TimelineCard in compact modern/gr…
Browse files Browse the repository at this point in the history
…oup layout (#8971)
  • Loading branch information
luixxiul authored Jul 2, 2022
1 parent 9328dca commit 37d8cfb
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions res/css/views/right_panel/_TimelineCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ limitations under the License.

&[data-layout=irc],
&[data-layout=group] {
--TimelineCard_ReadReceiptGroup-inset-block-start: -6px;

&.mx_EventTile_info .mx_EventTile_line,
.mx_EventTile_line {
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
Expand Down Expand Up @@ -97,6 +99,10 @@ limitations under the License.
margin-inline-end: $spacing-8; // See: var(--ThreadView_group_spacing-end) for ReactionsRow on _EventTile.scss
}

.mx_ReadReceiptGroup {
top: var(--TimelineCard_ReadReceiptGroup-inset-block-start);
}

.mx_ThreadSummary {
margin-inline-end: 0;
max-width: min(calc(100% - 36px), 600px);
Expand All @@ -110,6 +116,15 @@ limitations under the License.
}
}

&[data-layout=group] {
// Read receipt group on compact modern layout
// This is required because mx_TimelineCard is a child element wrapped by mx_MatrixChat_useCompactLayout,
// which specifies the default position of mx_ReadReceiptGroup on compact modern layout.
.mx_MatrixChat_useCompactLayout & .mx_ReadReceiptGroup {
top: var(--TimelineCard_ReadReceiptGroup-inset-block-start);
}
}

&[data-layout=bubble] {
&::before {
z-index: auto; // enable background color on hover
Expand Down Expand Up @@ -141,10 +156,6 @@ limitations under the License.
}
}

.mx_ReadReceiptGroup {
top: -6px;
}

.mx_WhoIsTypingTile {
margin-left: -12px; // undo padding on the message list
}
Expand Down

0 comments on commit 37d8cfb

Please sign in to comment.