Make shared-components tiles render identically outside Element Web - # 2 (#33485)

* Adding correct layout/density attributes to unit tests

* Move app/web styling to FileBodyView

* Unify styling for MediaBody wrapped components

* Fix prettier issues

* Update app/web snapshots

* Wrap file download and audio loading states in MediaBody

* Revert the MediaBody for download buttons.

* Revert changes for MediaBody wrappers

* Updated snaphots for MediaBody components
This commit is contained in:
rbondesson
2026-05-18 07:59:03 +02:00
committed by GitHub
parent 7fe8cdafe0
commit 297ad9bb8d
33 changed files with 63 additions and 89 deletions
@@ -3,10 +3,10 @@
exports[`MBodyFactory renderMBody fallback shows m.audio generic placeholder when showFileInfo is true 1`] = `
<div>
<span
class="_content_1t2mx_8 mx_MFileBody"
class="_content_bibip_8 mx_MFileBody"
>
<div
class="mx_MediaBody _mediaBody_rgndh_8"
class="mx_MediaBody _mediaBody_14jys_8"
data-type="info"
>
<button
@@ -44,10 +44,10 @@ exports[`MBodyFactory renderMBody fallback shows m.audio generic placeholder whe
exports[`MBodyFactory renderMBody fallback shows m.file generic placeholder when showFileInfo is true 1`] = `
<div>
<span
class="_content_1t2mx_8 mx_MFileBody"
class="_content_bibip_8 mx_MFileBody"
>
<div
class="mx_MediaBody _mediaBody_rgndh_8"
class="mx_MediaBody _mediaBody_14jys_8"
data-type="info"
>
<button
@@ -82,7 +82,7 @@ exports[`MBodyFactory renderMBody fallback shows m.file generic placeholder when
exports[`MBodyFactory renderMBody renders download button for m.file in file rendering type 1`] = `
<div>
<span
class="_content_1t2mx_8 mx_MFileBody"
class="_content_bibip_8 mx_MFileBody"
>
<div
data-type="download"