From ab1e28bfeaf2ce2879f67fead92c6d954733e890 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 4 Sep 2024 11:07:53 +0200 Subject: [PATCH] Compute with of content of pinned event tile (#12951) --- res/css/views/rooms/_PinnedEventTile.pcss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/res/css/views/rooms/_PinnedEventTile.pcss b/res/css/views/rooms/_PinnedEventTile.pcss index b37e3724fcd..b727a5ff5a1 100644 --- a/res/css/views/rooms/_PinnedEventTile.pcss +++ b/res/css/views/rooms/_PinnedEventTile.pcss @@ -23,7 +23,9 @@ limitations under the License. display: flex; flex-direction: column; gap: var(--cpd-space-1x); - width: 100%; + /* Remove avatar width and space between the avatar and the wrapper */ + /* We need it to make the location fit */ + width: calc(100% - var(--cpd-space-4x) - 32px); .mx_PinnedEventTile_top { display: flex;