diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index 181a300ef75..3a67d9af9bb 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -803,6 +803,10 @@ $left-gutter: 64px; margin: var(--topOffset) 16px var(--topOffset) 0; border-radius: 8px; + display: flex; + flex-flow: wrap; + align-items: center; + &:hover { background-color: $system; } @@ -848,16 +852,42 @@ $left-gutter: 64px; .mx_SenderProfile { margin-left: var(--leftOffset) !important; + flex: 1; + margin-right: 12px; + + display: inline-flex; + // not a fan of the magic number here, but I just tweaked + // the hardcoded value of the current implementation + max-width: calc(100% - 96px); + } + + .mx_SenderProfile_displayName, + .mx_SenderProfile_mxid { + display: block; + overflow: hidden; + text-overflow: ellipsis; + } + + .mx_SenderProfile_displayName { + flex: none; + max-width: 100%; + } + + .mx_SenderProfile_mxid { + flex: 1; } .mx_EventTile_line { + width: 100%; + box-sizing: border-box; padding-left: var(--leftOffset) !important; padding-bottom: 0; } + .mx_MessageTimestamp { - right: 0; - left: auto !important; - top: -23px; + position: initial !important; + max-width: 80px; + width: auto !important; } } diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 62c78ae48f5..a0a0a887857 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -1473,11 +1473,11 @@ export default class EventTile extends React.Component { }, <> { sender } { avatar } + { timestamp }
- { linkedTimestamp } { this.renderE2EPadlock() }
{ MessagePreviewStore.instance.generatePreviewForEvent(this.props.mxEvent) }