Fix long room address and name not being clipped on room info card and update _RoomSummaryCard.pcss
(#10811)
* Handle a long room address and name with ellipsis on RoomSummaryCard * Use a class selector for maintainability Sort the selectors
This commit is contained in:
parent
739eec8555
commit
ed5c02be6d
4 changed files with 51 additions and 11 deletions
|
@ -318,7 +318,13 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, permalinkCreator, onClose })
|
|||
/>
|
||||
</div>
|
||||
|
||||
<RoomName room={room}>{(name) => <h1 title={name}>{name}</h1>}</RoomName>
|
||||
<RoomName room={room}>
|
||||
{(name) => (
|
||||
<h1 className="mx_RoomSummaryCard_roomName" title={name}>
|
||||
{name}
|
||||
</h1>
|
||||
)}
|
||||
</RoomName>
|
||||
<div className="mx_RoomSummaryCard_alias" title={alias}>
|
||||
{alias}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue