From c27b11bf258e3d0928e36f03a9cef98dba53d9a5 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Wed, 5 Jan 2022 14:56:30 +0530 Subject: [PATCH] Add room alias or id as fallback in room profile Signed-off-by: Ajay Bura --- src/app/molecules/room-profile/RoomProfile.jsx | 1 + src/app/molecules/room-profile/RoomProfile.scss | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/molecules/room-profile/RoomProfile.jsx b/src/app/molecules/room-profile/RoomProfile.jsx index fefac0b..d9869bc 100644 --- a/src/app/molecules/room-profile/RoomProfile.jsx +++ b/src/app/molecules/room-profile/RoomProfile.jsx @@ -153,6 +153,7 @@ function RoomProfile({ roomId }) { /> )} + {room.getCanonicalAlias() || room.roomId} {roomTopic && {twemojify(roomTopic, undefined, true)}} ); diff --git a/src/app/molecules/room-profile/RoomProfile.scss b/src/app/molecules/room-profile/RoomProfile.scss index e6b12db..43d7014 100644 --- a/src/app/molecules/room-profile/RoomProfile.scss +++ b/src/app/molecules/room-profile/RoomProfile.scss @@ -21,7 +21,7 @@ } } - & > *:last-child { + & > *:not(:first-child) { margin-top: var(--sp-ultra-tight); white-space: pre-wrap; word-break: break-word;