fix channel profile img in header
This commit is contained in:
parent
2abd1ca6c2
commit
46a0d213fb
2 changed files with 21 additions and 1 deletions
|
@ -312,7 +312,10 @@ const Header = (props: Props) => {
|
||||||
<MenuButton
|
<MenuButton
|
||||||
aria-label={__('Your account')}
|
aria-label={__('Your account')}
|
||||||
title={__('Your account')}
|
title={__('Your account')}
|
||||||
className="header__navigation-item menu__title header__navigation-item--icon"
|
className={classnames('header__navigation-item', {
|
||||||
|
'menu__title header__navigation-item--icon': !channelUrl,
|
||||||
|
'header__navigation-item--profile-pic': channelUrl,
|
||||||
|
})}
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
onDoubleClick={e => {
|
onDoubleClick={e => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
|
@ -108,6 +108,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header__navigation-item--profile-pic {
|
||||||
|
.channel-thumbnail {
|
||||||
|
height: var(--height-button);
|
||||||
|
width: var(--height-button);
|
||||||
|
margin-right: 0;
|
||||||
|
border-radius: calc(var(--height-button) / 2);
|
||||||
|
|
||||||
|
img {
|
||||||
|
border-radius: calc(var(--height-button) / 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.header__navigation-item--balance {
|
.header__navigation-item--balance {
|
||||||
@extend .button--link;
|
@extend .button--link;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue