mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-22 05:39:20 +01:00
Use static avatar in composer
This commit is contained in:
parent
911ee288df
commit
3a326194ad
2 changed files with 7 additions and 1 deletions
|
@ -13,6 +13,7 @@ function AccountBlock({
|
||||||
skeleton,
|
skeleton,
|
||||||
account,
|
account,
|
||||||
avatarSize = 'xl',
|
avatarSize = 'xl',
|
||||||
|
useAvatarStatic = false,
|
||||||
instance,
|
instance,
|
||||||
external,
|
external,
|
||||||
internal,
|
internal,
|
||||||
|
@ -81,7 +82,11 @@ function AccountBlock({
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Avatar url={avatar} size={avatarSize} squircle={bot} />
|
<Avatar
|
||||||
|
url={useAvatarStatic ? avatarStatic : avatar || avatarStatic}
|
||||||
|
size={avatarSize}
|
||||||
|
squircle={bot}
|
||||||
|
/>
|
||||||
<span class="account-block-content">
|
<span class="account-block-content">
|
||||||
{!hideDisplayName && (
|
{!hideDisplayName && (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -613,6 +613,7 @@ function Compose({
|
||||||
account={currentAccountInfo}
|
account={currentAccountInfo}
|
||||||
accountInstance={currentAccount.instanceURL}
|
accountInstance={currentAccount.instanceURL}
|
||||||
hideDisplayName
|
hideDisplayName
|
||||||
|
useAvatarStatic
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!standalone ? (
|
{!standalone ? (
|
||||||
|
|
Loading…
Reference in a new issue