mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-25 01:48:43 +08:00
33299af5c9
* 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
45 lines
926 B
Plaintext
45 lines
926 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Roomeader renders with no props 1`] = `
|
|
<DocumentFragment>
|
|
<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_info"
|
|
>
|
|
<div
|
|
aria-level="1"
|
|
class="mx_RoomHeader_name"
|
|
dir="auto"
|
|
role="heading"
|
|
title="Join Room"
|
|
>
|
|
Join Room
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</DocumentFragment>
|
|
`;
|