Skip to content

Commit

Permalink
🐞 fix:修复avatar的显示
Browse files Browse the repository at this point in the history
  • Loading branch information
eleliauk committed Oct 6, 2024
1 parent 5529f6c commit f2180da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/pages/editUser/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
align-content: center;
margin-right: 25%;
}
.avatar-user {
background-color: white;
width: 10vh;
height: 10vh;
border-radius: 50%;
border: #ffd777 solid 1.81rpx;
align-content: center;
margin-right: 25%;

}
.nickname-container {
display: flex;
width: 100vw;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/editUser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const EditUser: React.FC = () => {
<View>
<View className="avatar-container">
<View className="avatar-text">修改头像</View>
<Image src={avatarUrl} onClick={chooseAvatar} className="avatar"></Image>
<Image src={avatarUrl} onClick={chooseAvatar} className="avatar-user"></Image>
</View>
<View className="divide-line"></View>
<View className="nickname-container">
Expand Down

0 comments on commit f2180da

Please sign in to comment.