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

Commit

Permalink
Fix avatars in public room & space search being flex shrunk (#11580)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Sep 8, 2023
1 parent 8b9719d commit 9479433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions res/css/views/dialogs/_SpotlightDialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ limitations under the License.
margin-right: $spacing-8;
width: 24px;
height: 24px;
flex-shrink: 0;

.mx_BaseAvatar {
width: inherit;
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/dialogs/spotlight/SpotlightDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
};

let otherSearchesSection: JSX.Element | undefined;
if (trimmedQuery || filter !== Filter.PublicRooms) {
if (trimmedQuery || (filter !== Filter.PublicRooms && filter !== Filter.PublicSpaces)) {
otherSearchesSection = (
<div
className="mx_SpotlightDialog_section mx_SpotlightDialog_otherSearches"
Expand Down

0 comments on commit 9479433

Please sign in to comment.