Don't render a bubble around emotes in bubble layout (#7573)

This commit is contained in:
Michael Telatynski 2022-01-24 13:51:57 +00:00 committed by GitHub
parent 6806c2cdca
commit d60b234b75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 1 deletions

View file

@ -42,6 +42,10 @@ limitations under the License.
width: fit-content;
}
.mx_EventTile_content {
margin-right: 0;
}
&.mx_EventTile_continuation {
margin-top: 2px;
}
@ -419,6 +423,22 @@ limitations under the License.
.mx_EventTile.mx_EventTile_noBubble[data-layout=bubble] {
--backgroundColor: transparent;
.mx_EventTile_line.mx_EventTile_emote {
padding-right: 60px; // align with bubbles text
font-style: italic;
> a { // timestamp anchor wrapper
align-self: center;
bottom: unset;
top: unset;
font-style: normal; // undo italic above
}
.mx_MEmoteBody {
padding: 4px 0;
}
}
}
.mx_EventTile.mx_EventTile_bubbleContainer[data-layout=bubble],