From 9834686e90e645cabbe157d2a884ce14c3261fd1 Mon Sep 17 00:00:00 2001 From: ElementRobot Date: Fri, 8 Sep 2023 12:47:50 +0200 Subject: [PATCH] [Backport staging] Fix avatars in public room & space search being flex shrunk (#11591) Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- 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 = (