From 337412ceddda4ef3ca162ddd74ae6406e0555340 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 7 Sep 2023 16:43:23 +0100 Subject: [PATCH 1/2] Fix avatars in public room & space search being flex shrunk Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- res/css/views/dialogs/_SpotlightDialog.pcss | 1 + 1 file changed, 1 insertion(+) diff --git a/res/css/views/dialogs/_SpotlightDialog.pcss b/res/css/views/dialogs/_SpotlightDialog.pcss index 5c2f5b67174..b7198012ab9 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; From 7ca67f57cc1090a0133f409f597b1f1d0662756c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 7 Sep 2023 16:43:41 +0100 Subject: [PATCH 2/2] Fix inconsistency between rooms & spaces search in UX Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/spotlight/SpotlightDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/spotlight/SpotlightDialog.tsx b/src/components/views/dialogs/spotlight/SpotlightDialog.tsx index bcb89c63efb..d0b69cfaf55 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 = (