From 9479433b0eb01f89be0e3388ea25ba70eb94d6db Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 8 Sep 2023 11:01:13 +0100 Subject: [PATCH] Fix avatars in public room & space search being flex shrunk (#11580) --- res/css/views/dialogs/_SpotlightDialog.pcss | 1 + src/components/views/dialogs/spotlight/SpotlightDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/res/css/views/dialogs/_SpotlightDialog.pcss b/res/css/views/dialogs/_SpotlightDialog.pcss index 5c2f5b6717..b7198012ab 100644 --- a/res/css/views/dialogs/_SpotlightDialog.pcss +++ b/res/css/views/dialogs/_SpotlightDialog.pcss @@ -277,6 +277,7 @@ limitations under the License. margin-right: $spacing-8; width: 24px; height: 24px; + flex-shrink: 0; .mx_BaseAvatar { width: inherit; diff --git a/src/components/views/dialogs/spotlight/SpotlightDialog.tsx b/src/components/views/dialogs/spotlight/SpotlightDialog.tsx index bcb89c63ef..d0b69cfaf5 100644 --- a/src/components/views/dialogs/spotlight/SpotlightDialog.tsx +++ b/src/components/views/dialogs/spotlight/SpotlightDialog.tsx @@ -563,7 +563,7 @@ const SpotlightDialog: React.FC = ({ initialText = "", initialFilter = n }; let otherSearchesSection: JSX.Element | undefined; - if (trimmedQuery || filter !== Filter.PublicRooms) { + if (trimmedQuery || (filter !== Filter.PublicRooms && filter !== Filter.PublicSpaces)) { otherSearchesSection = (