From c5b62c714faa66b4c05c68f366fc643df086a348 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sun, 8 Dec 2024 20:09:17 -0700 Subject: [PATCH] web/timeline: add hover text to member events, make info messages smaller and secondary color Signed-off-by: Sumner Evans --- web/src/ui/timeline/content/MemberBody.tsx | 6 +++--- web/src/ui/timeline/content/index.css | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/web/src/ui/timeline/content/MemberBody.tsx b/web/src/ui/timeline/content/MemberBody.tsx index e86ce34b..1e13eed0 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;