From: Ajay Bura Date: Wed, 5 Jan 2022 09:26:30 +0000 (+0530) Subject: Add room alias or id as fallback in room profile X-Git-Tag: v1.7.0~56 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=c27b11bf258e3d0928e36f03a9cef98dba53d9a5;p=rainny.git Add room alias or id as fallback in room profile Signed-off-by: Ajay Bura --- 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;