Don't show public indicator on spaces (#8607)

pull/28788/head^2
Šimon Brandner 2022-05-16 10:24:01 +02:00 committed by GitHub
parent 42f12485bc
commit e1d11db256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -29,8 +29,6 @@ limitations under the License.
user-select: none;
&.mx_RoomAvatar_isSpaceRoom {
mask-image: unset !important; // override mx_DecoratedRoomAvatar_cutout
&.mx_BaseAvatar_image, .mx_BaseAvatar_image {
border-radius: 8px;
}

View File

@ -27,6 +27,7 @@ import { Action } from "../../../dispatcher/actions";
import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar";
import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload";
import { roomContextDetailsText } from "../../../utils/i18n-helpers";
import RoomAvatar from "../avatars/RoomAvatar";
const RecentlyViewedButton = () => {
const tooltipRef = useRef<InteractiveTooltip>();
@ -50,7 +51,10 @@ const RecentlyViewedButton = () => {
tooltipRef.current?.hideTooltip();
}}
>
<DecoratedRoomAvatar room={crumb} avatarSize={24} tooltipProps={{ tabIndex: -1 }} />
{ crumb.isSpaceRoom()
? <RoomAvatar room={crumb} width={24} height={24} />
: <DecoratedRoomAvatar room={crumb} avatarSize={24} tooltipProps={{ tabIndex: -1 }} />
}
<span className="mx_RecentlyViewedButton_entry_label">
<div>{ crumb.name }</div>
{ contextDetails && <div className="mx_RecentlyViewedButton_entry_spaces">