Commit 49460cd 1 parent 031cfbe commit 49460cd Copy full SHA for 49460cd
File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" mt-8 flex w-full justify-between" >
3
3
<!-- 左侧头像区域 -->
4
4
<div class =" mr-16 hidden w-72 md:block" >
5
- <div class =" mx-auto h-56 w-56 overflow-hidden" >
5
+ <div
6
+ class =" mx-auto h-56 w-56 overflow-hidden rounded-full border-2 border-gray-300 bg-gray-300 dark:border-gray-700 dark:bg-gray-700"
7
+ >
8
+ <!-- 通过给定高度来自适应拉伸图片,如果图片不存在或者加载失败则显示外层的背景色(没有宽度) -->
6
9
<img
7
- class =" h-full w-full rounded-full border-2 border-gray-300 bg-gray-300 object-cover dark:border-gray-700 dark:bg-gray-700 "
10
+ class =" h-full object-cover"
8
11
:src =" userStore.userInfo?.picture!"
9
12
/>
10
13
</div >
Original file line number Diff line number Diff line change 55
55
class =" logged-in flex items-center"
56
56
>
57
57
<div
58
- class =" btn btn-square btn-ghost drawer-button "
58
+ class =" h-8 w-8 cursor-pointer overflow-hidden rounded-full bg-gray-300 transition-all hover:scale-125 hover:opacity-90 dark:bg-gray-700 "
59
59
@click =" handleShowUserMenu"
60
60
>
61
- <div class =" avatar" >
62
- <div class =" w-8 rounded-full" >
63
- <img :src =" userStore.userInfo?.picture!" />
64
- </div >
65
- </div >
61
+ <img
62
+ class =" h-full object-cover"
63
+ :src =" userStore.userInfo?.picture!"
64
+ />
66
65
</div >
67
66
</div >
68
67
<!-- 登录/注册 -->
You can’t perform that action at this time.
0 commit comments