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

Commit 610ee53

Browse files
authored
Extract style rules specific to ThreadsList to prevent a visual regression (#10894)
1 parent 21ffc50 commit 610ee53

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

res/css/views/rooms/_EventTile.pcss

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,29 +1124,6 @@ $left-gutter: 64px;
11241124
box-sizing: border-box;
11251125
padding-bottom: 0;
11261126
padding-inline-start: var(--leftOffset);
1127-
1128-
.mx_ThreadPanel_replies {
1129-
margin-top: $spacing-8;
1130-
display: flex;
1131-
align-items: center;
1132-
position: relative;
1133-
1134-
&::before {
1135-
@mixin ThreadSummaryIcon;
1136-
}
1137-
1138-
.mx_ThreadPanel_replies_amount {
1139-
@mixin ThreadRepliesAmount;
1140-
line-height: var(--EventTile_ThreadSummary-line-height);
1141-
font-size: $font-12px; /* Same font size as the counter on the main panel */
1142-
}
1143-
1144-
.mx_ThreadSummary_content {
1145-
text-overflow: ellipsis;
1146-
overflow: hidden;
1147-
white-space: nowrap;
1148-
}
1149-
}
11501127
}
11511128

11521129
.mx_MessageTimestamp {
@@ -1171,6 +1148,31 @@ $left-gutter: 64px;
11711148
}
11721149
}
11731150

1151+
.mx_EventTile[data-shape="ThreadsList"] {
1152+
.mx_ThreadPanel_replies {
1153+
margin-top: $spacing-8;
1154+
display: flex;
1155+
align-items: center;
1156+
position: relative;
1157+
1158+
&::before {
1159+
@mixin ThreadSummaryIcon;
1160+
}
1161+
1162+
.mx_ThreadPanel_replies_amount {
1163+
@mixin ThreadRepliesAmount;
1164+
line-height: var(--EventTile_ThreadSummary-line-height);
1165+
font-size: $font-12px; /* Same font size as the counter on the main panel */
1166+
}
1167+
1168+
.mx_ThreadSummary_content {
1169+
text-overflow: ellipsis;
1170+
overflow: hidden;
1171+
white-space: nowrap;
1172+
}
1173+
}
1174+
}
1175+
11741176
/* For style rules of ThreadView, see _ThreadPanel.pcss */
11751177
.mx_ThreadView {
11761178
--ThreadView_group_spacing-start: 56px; /* 56px: 64px - 8px (padding) */

0 commit comments

Comments
 (0)