Skip to content

Commit

Permalink
fix: 修复问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft authored and jianbing.chen committed Dec 18, 2024
1 parent 132f2ec commit fdf0ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/admin/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Header = memo(() => {
{/* 用户信息 */}
<div className={styles.user}>
{/* 用户头像 */}
{userInfo.avatar ? <img width={30} src={userInfo.avatar} style={{ borderRadius: '50%' }} /> : null}
{userInfo.avatar ? <img width={30} src={userInfo.avatar} style={{ borderRadius: '100%' }} /> : null}
<Dropdown
menu={{
items: [
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/layout/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ const Header = memo(() => {
<a onClick={(e) => e.preventDefault()} style={{ marginInline: 5 }}>
{`${userInfo.nickName}` || '开发者'}
</a>
{userInfo.avatar && <img width={25} style={{ verticalAlign: 'sub', borderRadius: '50%' }} src={userInfo.avatar} />}
{userInfo.avatar && <img width={25} style={{ verticalAlign: 'sub', borderRadius: '100%' }} src={userInfo.avatar} />}
</Flex>
</Dropdown>

Expand Down

0 comments on commit fdf0ee5

Please sign in to comment.