fix: avatar size adjustment

This commit is contained in:
shuai 2022-11-01 09:48:44 +08:00
parent a2dd4f2f35
commit 792a9642ac
4 changed files with 7 additions and 7 deletions

View File

@ -43,7 +43,7 @@ const Index: FC<Props> = ({ redDot, userInfo, logOut }) => {
id="dropdown-basic"
as="a"
className="no-toggle pointer">
<Avatar size="36px" avatar={userInfo?.avatar} searchStr="s=48" />
<Avatar size="36px" avatar={userInfo?.avatar} searchStr="s=96" />
</Dropdown.Toggle>
<Dropdown.Menu>

View File

@ -23,7 +23,7 @@ const Index: FC<Props> = ({ data, time, preFix, className = '' }) => {
avatar={data?.avatar}
size="40px"
className="me-2 d-none d-md-block"
searchStr="s=48"
searchStr="s=96"
/>
<Avatar
@ -38,7 +38,7 @@ const Index: FC<Props> = ({ data, time, preFix, className = '' }) => {
avatar={data?.avatar}
size="40px"
className="me-2"
searchStr="s=48"
searchStr="s=96"
/>
)}
<div className="fs-14 text-secondary d-flex flex-row flex-md-column align-items-center align-items-md-start">

View File

@ -19,10 +19,10 @@ const Index: FC<Props> = ({ data }) => {
<div className="d-flex mb-4">
{data?.status !== 'deleted' ? (
<Link to={`/users/${data.username}`} reloadDocument>
<Avatar avatar={data.avatar} size="160px" searchStr="s=128" />
<Avatar avatar={data.avatar} size="160px" searchStr="s=256" />
</Link>
) : (
<Avatar avatar={data.avatar} size="160px" searchStr="s=128" />
<Avatar avatar={data.avatar} size="160px" searchStr="s=256" />
)}
<div className="ms-4">

View File

@ -315,7 +315,7 @@ const Index: React.FC = () => {
<Avatar
size="128px"
avatar={formData.avatar.gravatar}
searchStr={`s=128&d=identicon${
searchStr={`s=256&d=identicon${
count > 0 ? `&t=${new Date().valueOf()}` : ''
}`}
className="me-3 rounded"
@ -348,7 +348,7 @@ const Index: React.FC = () => {
<>
<Avatar
size="128px"
searchStr="s=128"
searchStr="s=256"
avatar={formData.avatar.custom}
className="me-3 rounded"
/>