Extract style rules specific to `ThreadsList` to prevent a visual regression (#10894)
parent
21ffc50f1e
commit
610ee53257
|
@ -1124,29 +1124,6 @@ $left-gutter: 64px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
padding-inline-start: var(--leftOffset);
|
padding-inline-start: var(--leftOffset);
|
||||||
|
|
||||||
.mx_ThreadPanel_replies {
|
|
||||||
margin-top: $spacing-8;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
@mixin ThreadSummaryIcon;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_ThreadPanel_replies_amount {
|
|
||||||
@mixin ThreadRepliesAmount;
|
|
||||||
line-height: var(--EventTile_ThreadSummary-line-height);
|
|
||||||
font-size: $font-12px; /* Same font size as the counter on the main panel */
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_ThreadSummary_content {
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_MessageTimestamp {
|
.mx_MessageTimestamp {
|
||||||
|
@ -1171,6 +1148,31 @@ $left-gutter: 64px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_EventTile[data-shape="ThreadsList"] {
|
||||||
|
.mx_ThreadPanel_replies {
|
||||||
|
margin-top: $spacing-8;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
@mixin ThreadSummaryIcon;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_ThreadPanel_replies_amount {
|
||||||
|
@mixin ThreadRepliesAmount;
|
||||||
|
line-height: var(--EventTile_ThreadSummary-line-height);
|
||||||
|
font-size: $font-12px; /* Same font size as the counter on the main panel */
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_ThreadSummary_content {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* For style rules of ThreadView, see _ThreadPanel.pcss */
|
/* For style rules of ThreadView, see _ThreadPanel.pcss */
|
||||||
.mx_ThreadView {
|
.mx_ThreadView {
|
||||||
--ThreadView_group_spacing-start: 56px; /* 56px: 64px - 8px (padding) */
|
--ThreadView_group_spacing-start: 56px; /* 56px: 64px - 8px (padding) */
|
||||||
|
|
Loading…
Reference in New Issue