Simplify Space Panel notification badge layout (#6977)

This commit is contained in:
Michael Telatynski 2021-10-19 16:11:53 +01:00 committed by GitHub
parent 694ec946e2
commit 974f45930c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 48 deletions

View file

@ -125,9 +125,11 @@ export const SpaceButton: React.FC<IButtonProps> = ({
>
{ children }
<div className="mx_SpaceButton_selectionWrapper">
{ avatar }
<div className="mx_SpaceButton_avatarWrapper">
{ avatar }
{ notifBadge }
</div>
{ !isNarrow && <span className="mx_SpaceButton_name">{ label }</span> }
{ notifBadge }
{ ContextMenuComponent && <ContextMenuTooltipButton
className="mx_SpaceButton_menuButton"