mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 15:27:54 +00:00
Tweak avatars
This commit is contained in:
parent
58711528cd
commit
a857d9db96
5 changed files with 18 additions and 8 deletions
|
|
@ -90,9 +90,9 @@ export default function MemberCard(props) {
|
|||
} else setPronouns('')
|
||||
|
||||
if (member.avatar_url) {
|
||||
setAvatar(member.avatar_url)
|
||||
setAvatar(member.avatar_url.replace('?width=256&height=256&format=jpeg', ''))
|
||||
} else setAvatar('')
|
||||
|
||||
|
||||
if (member.color) {
|
||||
setColor(member.color);
|
||||
} else setColor('');
|
||||
|
|
@ -202,7 +202,7 @@ export default function MemberCard(props) {
|
|||
{ member.avatar_url ? <Popup trigger={<BS.Image src={`${member.avatar_url}`} style={{width: 50, height: 50}} tabIndex="0" className="float-right" roundedCircle />} className="avatar" modal>
|
||||
{close => (
|
||||
<div className="text-center w-100 m-0" onClick={() => close()}>
|
||||
<BS.Image src={`${member.avatar_url}`} style={{width: 500, height: 'auto'}} thumbnail />
|
||||
<BS.Image src={`${avatar}`} style={{width: 500, height: 'auto'}} thumbnail />
|
||||
</div>
|
||||
)}
|
||||
</Popup> :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue