From 778344ddbf0dee37234595a2f1d05fd5e7654ecc Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Wed, 25 May 2022 22:01:01 +0900 Subject: [PATCH] Apply the max-width of EventTile_line to DisambiguatedProfile's displayName Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_EventBubbleTile.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/res/css/views/rooms/_EventBubbleTile.scss b/res/css/views/rooms/_EventBubbleTile.scss index ff91410eb62..6e648d4e579 100644 --- a/res/css/views/rooms/_EventBubbleTile.scss +++ b/res/css/views/rooms/_EventBubbleTile.scss @@ -111,8 +111,10 @@ limitations under the License. .mx_DisambiguatedProfile, .mx_EventTile_line { + --EventBubbleTile_line-max-width: 70%; + width: fit-content; - max-width: var(--EventBubbleTile_line-max-width); + max-width: var(--EventBubbleTile_line-max-width); // Align message bubble and displayName line-height: $font-18px; // fixed line height to prevent emoji from being taller than text } @@ -264,7 +266,6 @@ limitations under the License. .mx_EventTile_line { --EventBubbleTile_line-margin-inline-end: -12px; - --EventBubbleTile_line-max-width: 70%; position: relative; display: flex;