Move EventTile to shared components - #4c (#34697)

* Add missing placement state contract for root and line

* Add editing, information and failure state

* Add bubble placement from state

* Add media and sticker line styling

* Added reply chain styling

* Add interactive stories for states and separate test confgis for baseline screenshots

* Use shared components instead of mocks where available

* Added more relevant slot content data

* Add missing states and use presentation context

* Add state styling

* Fix irc layout dom ordering

* Rearrange styling and add screenshots

* Removed stale screenshots

* Fix Sonar issue

* Add missing layout rule styling and replace legacy application CSS variables

* Updated snapshots

* Minor changes to styling for bubble container and border radius defaults
This commit is contained in:
rbondesson
2026-08-14 15:15:59 +00:00
committed by GitHub
parent d732fa807f
commit 3a75b7d47c
51 changed files with 1625 additions and 233 deletions
@@ -63,7 +63,7 @@ exports[`MessagePanel should handle lots of membership events quickly 1`] = `
</div>
</li>
<div
class="_container_sq5fu_8 mx_EventTileBubble mx_HistoryTile"
class="_container_sicoi_8 mx_EventTileBubble mx_HistoryTile"
>
<svg
fill="currentColor"
@@ -77,7 +77,7 @@ exports[`MessagePanel should handle lots of membership events quickly 1`] = `
/>
</svg>
<div
class="_title_sq5fu_34"
class="_title_sicoi_32"
>
You can't see earlier messages
</div>
@@ -154,7 +154,7 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
class="mx_NewRoomIntro"
>
<div
class="_container_sq5fu_8 mx_EventTileBubble mx_cryptoEvent"
class="_container_sicoi_8 mx_EventTileBubble mx_cryptoEvent"
>
<svg
color="var(--cpd-color-icon-critical-primary)"
@@ -169,12 +169,12 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
/>
</svg>
<div
class="_title_sq5fu_34"
class="_title_sicoi_32"
>
End-to-end encryption isn't enabled
</div>
<div
class="_subtitle_sq5fu_35"
class="_subtitle_sicoi_33"
>
<span>
@@ -351,7 +351,7 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
class="mx_NewRoomIntro"
>
<div
class="_container_sq5fu_8 mx_EventTileBubble mx_cryptoEvent"
class="_container_sicoi_8 mx_EventTileBubble mx_cryptoEvent"
>
<svg
color="var(--cpd-color-icon-critical-primary)"
@@ -366,12 +366,12 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
/>
</svg>
<div
class="_title_sq5fu_34"
class="_title_sicoi_32"
>
End-to-end encryption isn't enabled
</div>
<div
class="_subtitle_sq5fu_35"
class="_subtitle_sicoi_33"
>
<span>
@@ -754,7 +754,7 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
style="height: 400px;"
>
<div
class="_container_sq5fu_8 mx_EventTileBubble mx_cryptoEvent _content_ufv8a_8"
class="_container_sicoi_8 mx_EventTileBubble mx_cryptoEvent _content_ufv8a_8"
>
<svg
data-state="supported"
@@ -769,12 +769,12 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
/>
</svg>
<div
class="_title_sq5fu_34"
class="_title_sicoi_32"
>
Encryption enabled
</div>
<div
class="_subtitle_sq5fu_35"
class="_subtitle_sicoi_33"
>
Messages in this chat will be end-to-end encrypted.
</div>