Add a pinned message badge under a pinned message (#118)
* Add pinned message badge for Modern Layout * Add Bubble layout support * Add thread support * Add irc support * Rename event tile badges * Don't render footer when there is no reactions * Add a test for `PinnedMessageBadge.tsx` * Add a test in EventTile-test.tsx * Add e2e test
This commit is contained in:
parent
2dbaf00e71
commit
70418f8f3d
14 changed files with 189 additions and 11 deletions
|
@ -463,6 +463,10 @@ $left-gutter: 64px;
|
|||
margin-left: calc(var(--name-width) + var(--icon-width) + 1 * var(--right-padding));
|
||||
}
|
||||
}
|
||||
|
||||
.mx_EventTile_footer {
|
||||
margin: var(--cpd-space-1-5x) 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-layout="group"] {
|
||||
|
@ -509,8 +513,8 @@ $left-gutter: 64px;
|
|||
margin-left: $left-gutter;
|
||||
}
|
||||
|
||||
.mx_ReactionsRow {
|
||||
margin: $spacing-4 64px;
|
||||
.mx_EventTile_footer {
|
||||
margin: var(--cpd-space-1x) var(--cpd-space-16x);
|
||||
}
|
||||
|
||||
> .mx_DisambiguatedProfile {
|
||||
|
@ -1248,7 +1252,7 @@ $left-gutter: 64px;
|
|||
padding-block-start: $spacing-16;
|
||||
|
||||
.mx_EventTile_line,
|
||||
.mx_ReactionsRow {
|
||||
.mx_EventTile_footer {
|
||||
margin-inline-end: var(--ThreadView_group_spacing-end);
|
||||
}
|
||||
|
||||
|
@ -1266,7 +1270,7 @@ $left-gutter: 64px;
|
|||
}
|
||||
}
|
||||
|
||||
.mx_ReactionsRow {
|
||||
.mx_EventTile_footer {
|
||||
/* Align with message text and summary text */
|
||||
margin-inline-start: var(--ThreadView_group_spacing-start);
|
||||
}
|
||||
|
@ -1456,6 +1460,12 @@ $left-gutter: 64px;
|
|||
display: flex;
|
||||
}
|
||||
|
||||
.mx_EventTile_footer {
|
||||
display: flex;
|
||||
gap: var(--cpd-space-2x);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Media query for mobile UI */
|
||||
@media only screen and (max-width: 480px) {
|
||||
.mx_EventTile_content {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue