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

Fix user name overflow on bubble message #8405

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion res/css/views/rooms/_EventBubbleTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ limitations under the License.
.mx_DisambiguatedProfile,
.mx_EventTile_line {
width: fit-content;
max-width: 70%;
// fixed line height to prevent emoji from being taller than text
line-height: $font-18px;
}

.mx_DisambiguatedProfile {
max-width: 100%;
}

> .mx_DisambiguatedProfile {
position: relative;
top: -2px;
Expand Down Expand Up @@ -214,6 +217,7 @@ limitations under the License.
margin: 0 -12px 0 -9px;
border-top-left-radius: var(--cornerRadius);
border-top-right-radius: var(--cornerRadius);
max-width: 70%;

// the selector here is quite weird because timestamps can appear linked & unlinked and in different places
// in the DOM depending on the specific rendering context
Expand Down Expand Up @@ -433,17 +437,22 @@ limitations under the License.
"shield body" auto
"shield link" auto
/ auto 1fr;

.mx_EventTile_e2eIcon {
grid-area: shield;
}

.mx_UnknownBody {
grid-area: body;
}

.mx_EventTile_keyRequestInfo {
grid-area: link;
}

.mx_ReplyChain_wrapper {
grid-area: reply;
overflow: hidden; // for DisambiguatedProfile
}
}

Expand Down