File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 4
4
export let avatarHash: string ;
5
5
export let avatarDecoration: AvatarDecorationData | null ;
6
6
export let globalName: string ;
7
+ export let hasBanner: boolean ;
7
8
8
9
const avatarUrl =
9
10
avatarHash !== null
22
23
23
24
<div >
24
25
<img
25
- class =" avatar"
26
+ class ="avatar { hasBanner ? ' hasCustomBanner ' : ' hasColorBanner ' } "
26
27
src ={avatarUrl }
27
28
alt ={` ${globalName }'s avatar ` }
28
29
draggable ={false }
33
34
{/if }
34
35
</div >
35
36
36
- <style >
37
+ <style lang = " scss " >
37
38
.avatar {
38
39
border-radius : 100% ;
39
40
position : absolute ;
40
41
width : 80px ;
41
42
height : 80px ;
42
- top : 90px ;
43
43
left : 22px ;
44
44
user-select : none ;
45
+ & .hasCustomBanner {
46
+ top : 90px ;
47
+ }
48
+ & .hasColorBanner {
49
+ top : 16px ;
50
+ }
45
51
}
46
52
47
53
.decor {
Original file line number Diff line number Diff line change 53
53
avatarHash ={user .user .avatar }
54
54
avatarDecoration ={user .user .avatar_decoration_data }
55
55
globalName ={user .user .global_name }
56
+ hasBanner ={user .user .banner !== null }
56
57
/>
57
58
<div class =" main" >
58
59
<Badges
You can’t perform that action at this time.
0 commit comments