Don't show public indicator on spaces (#8607)
This commit is contained in:
@@ -29,8 +29,6 @@ limitations under the License.
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
&.mx_RoomAvatar_isSpaceRoom {
|
&.mx_RoomAvatar_isSpaceRoom {
|
||||||
mask-image: unset !important; // override mx_DecoratedRoomAvatar_cutout
|
|
||||||
|
|
||||||
&.mx_BaseAvatar_image, .mx_BaseAvatar_image {
|
&.mx_BaseAvatar_image, .mx_BaseAvatar_image {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import { Action } from "../../../dispatcher/actions";
|
|||||||
import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar";
|
import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar";
|
||||||
import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload";
|
import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload";
|
||||||
import { roomContextDetailsText } from "../../../utils/i18n-helpers";
|
import { roomContextDetailsText } from "../../../utils/i18n-helpers";
|
||||||
|
import RoomAvatar from "../avatars/RoomAvatar";
|
||||||
|
|
||||||
const RecentlyViewedButton = () => {
|
const RecentlyViewedButton = () => {
|
||||||
const tooltipRef = useRef<InteractiveTooltip>();
|
const tooltipRef = useRef<InteractiveTooltip>();
|
||||||
@@ -50,7 +51,10 @@ const RecentlyViewedButton = () => {
|
|||||||
tooltipRef.current?.hideTooltip();
|
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">
|
<span className="mx_RecentlyViewedButton_entry_label">
|
||||||
<div>{ crumb.name }</div>
|
<div>{ crumb.name }</div>
|
||||||
{ contextDetails && <div className="mx_RecentlyViewedButton_entry_spaces">
|
{ contextDetails && <div className="mx_RecentlyViewedButton_entry_spaces">
|
||||||
|
|||||||
Reference in New Issue
Block a user