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

Commit

Permalink
Fix broken threads list timestamp layout
Browse files Browse the repository at this point in the history
Previously, thread list timestamps would overflow
into the unread messages bubble on the right.

This is fixed by resetting the width of the
timestamp and ensuring both the timestamp and the
display name can shrink if necessary.
Both now also use ellipses if necessary.
  • Loading branch information
justjanne committed Jan 17, 2023
1 parent 2eef3c4 commit d84605c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion res/css/views/rooms/_EventTile.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,14 @@ $left-gutter: 64px;
inset: $padding auto auto $padding;
}

.mx_EventTile_details {
overflow: hidden;
}

.mx_DisambiguatedProfile {
display: inline-flex;
align-items: center;
flex: 1;

.mx_DisambiguatedProfile_displayName,
.mx_DisambiguatedProfile_mxid {
Expand Down Expand Up @@ -979,7 +985,9 @@ $left-gutter: 64px;

.mx_MessageTimestamp {
font-size: $font-12px;
max-width: var(--MessageTimestamp-max-width);
width: unset; /* Cancel the default width */
overflow: hidden; /* ensure correct overflow behavior */
text-overflow: ellipsis;
position: initial;
margin-left: auto; /* to ensure it's end-aligned even if it's the only element of its parent */
}
Expand Down

0 comments on commit d84605c

Please sign in to comment.