mirror of https://github.com/vector-im/riot-web
Don't show public indicator on spaces (#8607)
parent
42f12485bc
commit
e1d11db256
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue