mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-28 19:38:48 +08:00
d49581344e
* 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 * Integrate @vector-im/compound-web * Use compound type styles * Use latest version of @vector-im/compound-web * Change component name * Fallback when room is undefined * fix snapshot
45 lines
1003 B
Plaintext
45 lines
1003 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"
|
|
dir="auto"
|
|
role="heading"
|
|
style="font: var(--cpd-font-body-lg-semibold); letter-spacing: var(--cpd-font-letter-spacing-body-lg);"
|
|
title="Join Room"
|
|
>
|
|
Join Room
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</DocumentFragment>
|
|
`;
|