diff --git a/web/src/ui/timeline/content/MemberBody.tsx b/web/src/ui/timeline/content/MemberBody.tsx index 292a9d0a..fd1088cf 100644 --- a/web/src/ui/timeline/content/MemberBody.tsx +++ b/web/src/ui/timeline/content/MemberBody.tsx @@ -44,9 +44,9 @@ function useChangeDescription( return <>set their displayname to {content.displayname} } return <> - changed their displayname from + changed their displayname from {prevContent.displayname} - to {content.displayname} + to {content.displayname} } else if (content.avatar_url !== prevContent.avatar_url) { if (!content.avatar_url) { @@ -95,7 +95,7 @@ const MemberBody = ({ event, sender }: EventContentProps) => { const content = event.content as MemberEventContent const prevContent = event.unsigned.prev_content as MemberEventContent | undefined return
- + {sender?.content.displayname ?? event.sender} {useChangeDescription(event.sender, event.state_key as UserID, content, prevContent)} diff --git a/web/src/ui/timeline/content/index.css b/web/src/ui/timeline/content/index.css index 0a403a2b..9f61968f 100644 --- a/web/src/ui/timeline/content/index.css +++ b/web/src/ui/timeline/content/index.css @@ -23,6 +23,14 @@ div.redacted-body, div.decryption-pending-body { } } +div.member-body, +div.room-name-body, +div.power-level-body, +div.room-avatar-body { + font-size: 0.9rem; + color: var(--secondary-text-color); +} + div.member-body { span.name, span.reason { unicode-bidi: isolate;