Fix big date separators when jump to date is enabled (#10404)

Fix https://github.com/vector-im/element-web/issues/22969
This commit is contained in:
Eric Eastwood 2023-03-20 11:03:36 -05:00 committed by GitHub
parent 5b2e12ca0c
commit 7a68bd9cef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 19 deletions

View file

@ -53,11 +53,16 @@ exports[`<MessageEditHistory /> should match the snapshot 1`] = `
<hr
role="none"
/>
<h2
aria-hidden="true"
<div
class="mx_DateSeparator_dateContent"
>
Thu, Jan 1 1970
</h2>
<h2
aria-hidden="true"
class="mx_DateSeparator_dateHeading"
>
Thu, Jan 1 1970
</h2>
</div>
<hr
role="none"
/>
@ -165,11 +170,16 @@ exports[`<MessageEditHistory /> should support events with 1`] = `
<hr
role="none"
/>
<h2
aria-hidden="true"
<div
class="mx_DateSeparator_dateContent"
>
, NaN NaN
</h2>
<h2
aria-hidden="true"
class="mx_DateSeparator_dateHeading"
>
, NaN NaN
</h2>
</div>
<hr
role="none"
/>