This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/components/views/rooms Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ limitations under the License.
2929 user-select : none ;
3030
3131 & .mx_RoomAvatar_isSpaceRoom {
32- mask-image : unset !important ; // override mx_DecoratedRoomAvatar_cutout
33-
3432 & .mx_BaseAvatar_image , .mx_BaseAvatar_image {
3533 border-radius : 8px ;
3634 }
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import { Action } from "../../../dispatcher/actions";
2727import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar" ;
2828import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload" ;
2929import { roomContextDetailsText } from "../../../utils/i18n-helpers" ;
30+ import RoomAvatar from "../avatars/RoomAvatar" ;
3031
3132const RecentlyViewedButton = ( ) => {
3233 const tooltipRef = useRef < InteractiveTooltip > ( ) ;
@@ -50,7 +51,10 @@ const RecentlyViewedButton = () => {
5051 tooltipRef . current ?. hideTooltip ( ) ;
5152 } }
5253 >
53- < DecoratedRoomAvatar room = { crumb } avatarSize = { 24 } tooltipProps = { { tabIndex : - 1 } } />
54+ { crumb . isSpaceRoom ( )
55+ ? < RoomAvatar room = { crumb } width = { 24 } height = { 24 } />
56+ : < DecoratedRoomAvatar room = { crumb } avatarSize = { 24 } tooltipProps = { { tabIndex : - 1 } } />
57+ }
5458 < span className = "mx_RecentlyViewedButton_entry_label" >
5559 < div > { crumb . name } </ div >
5660 { contextDetails && < div className = "mx_RecentlyViewedButton_entry_spaces" >
You can’t perform that action at this time.
0 commit comments