1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Put avatar is right place when sender isnt displayed in message bubbles

This commit is contained in:
Germain Souquet
2021-07-23 12:09:39 +02:00
parent 358a4e5d3f
commit 1ba5f19f2e
2 changed files with 7 additions and 0 deletions

View File

@@ -162,6 +162,12 @@ limitations under the License.
}
}
&.mx_EventTile_noSender {
.mx_EventTile_avatar {
top: -19px;
}
}
&[data-has-reply=true] {
> .mx_EventTile_line {
flex-direction: column;

View File

@@ -893,6 +893,7 @@ export default class EventTile extends React.Component<IProps, IState> {
mx_EventTile_unknown: !isBubbleMessage && this.state.verified === E2E_STATE.UNKNOWN,
mx_EventTile_bad: isEncryptionFailure,
mx_EventTile_emote: msgtype === 'm.emote',
mx_EventTile_noSender: this.props.hideSender,
});
// If the tile is in the Sending state, don't speak the message.