Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 9834686

Browse files
RiotRobott3chguy
andauthored
[Backport staging] Fix avatars in public room & space search being flex shrunk (#11591)
Co-authored-by: Michael Telatynski <[email protected]>
1 parent 708537d commit 9834686

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

res/css/views/dialogs/_SpotlightDialog.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ limitations under the License.
277277
margin-right: $spacing-8;
278278
width: 24px;
279279
height: 24px;
280+
flex-shrink: 0;
280281

281282
.mx_BaseAvatar {
282283
width: inherit;

src/components/views/dialogs/spotlight/SpotlightDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
563563
};
564564

565565
let otherSearchesSection: JSX.Element | undefined;
566-
if (trimmedQuery || filter !== Filter.PublicRooms) {
566+
if (trimmedQuery || (filter !== Filter.PublicRooms && filter !== Filter.PublicSpaces)) {
567567
otherSearchesSection = (
568568
<div
569569
className="mx_SpotlightDialog_section mx_SpotlightDialog_otherSearches"

0 commit comments

Comments
 (0)