Add room topic and animation (#11352)
* Create useRoomName hook Mark RoomName component as deprecated * Pass out-of-band data to relevant RoomHeader component * Mark LegacyRoomHeader as deprecated * Fix incorrect search&replace in _RoomHeader.pcss * lintfix * Mark room as optional in room topic hook * Fix i18n * Discard use of useCallback * Change export of useRoomName * fix ts issue * lints * Add room topic to room header * lintfix * lintfix & clamp to one line * Revert optimisations to DecoratedRoomAvatar * Add test for opening the room summary * Make transition honour prefer-reduced-motion * Fallback when room is undefined * fix snapshot
This commit is contained in:
parent
8166306e0f
commit
33299af5c9
5 changed files with 123 additions and 40 deletions
|
@ -5,8 +5,29 @@ exports[`Roomeader renders with no props 1`] = `
|
|||
<header
|
||||
class="mx_RoomHeader light-panel"
|
||||
>
|
||||
<span
|
||||
class="mx_BaseAvatar"
|
||||
role="presentation"
|
||||
>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
class="mx_BaseAvatar_initial"
|
||||
style="font-size: 26px; width: 40px; line-height: 40px;"
|
||||
>
|
||||
?
|
||||
</span>
|
||||
<img
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
class="mx_BaseAvatar_image"
|
||||
data-testid="avatar-img"
|
||||
loading="lazy"
|
||||
src="data:image/png;base64,00"
|
||||
style="width: 40px; height: 40px;"
|
||||
/>
|
||||
</span>
|
||||
<div
|
||||
class="mx_RoomHeader_wrapper"
|
||||
class="mx_RoomHeader_info"
|
||||
>
|
||||
<div
|
||||
aria-level="1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue