diff --git a/res/css/views/dialogs/_SpotlightDialog.scss b/res/css/views/dialogs/_SpotlightDialog.scss index c9a77efd5c..9b65c2e01e 100644 --- a/res/css/views/dialogs/_SpotlightDialog.scss +++ b/res/css/views/dialogs/_SpotlightDialog.scss @@ -146,10 +146,12 @@ limitations under the License. text-overflow: ellipsis; overflow: hidden; - .mx_BaseAvatar { + .mx_DecoratedRoomAvatar { margin-right: 8px; - display: inline-block; - height: 20px; + } + + .mx_NotificationBadge { + margin-left: 8px; } &:hover, &[aria-selected=true] { diff --git a/src/components/views/dialogs/SpotlightDialog.tsx b/src/components/views/dialogs/SpotlightDialog.tsx index 2d3154cc83..6ec05124de 100644 --- a/src/components/views/dialogs/SpotlightDialog.tsx +++ b/src/components/views/dialogs/SpotlightDialog.tsx @@ -34,7 +34,6 @@ import { IDialogProps } from "./IDialogProps"; import { _t } from "../../../languageHandler"; import BaseDialog from "./BaseDialog"; import { BreadcrumbsStore } from "../../../stores/BreadcrumbsStore"; -import RoomAvatar from "../avatars/RoomAvatar"; import defaultDispatcher from "../../../dispatcher/dispatcher"; import { findSiblingElement, @@ -63,6 +62,8 @@ import RoomViewStore from "../../../stores/RoomViewStore"; import { showStartChatInviteDialog } from "../../../RoomInvite"; import SettingsStore from "../../../settings/SettingsStore"; import { SettingLevel } from "../../../settings/SettingLevel"; +import NotificationBadge from "../rooms/NotificationBadge"; +import { RoomNotificationStateStore } from "../../../stores/notifications/RoomNotificationStateStore"; const MAX_RECENT_SEARCHES = 10; const SECTION_LIMIT = 50; // only show 50 results per section for performance reasons @@ -244,8 +245,9 @@ const SpotlightDialog: React.FC = ({ initialText = "", onFinished }) => viewRoom(room.roomId, true); }} > - + { room.name } +
@@ -383,8 +385,9 @@ const SpotlightDialog: React.FC = ({ initialText = "", onFinished }) => viewRoom(room.roomId, true); }} > - + { room.name } +
)) }