File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
widgets/libs/vertical-expanded-tiles Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,21 @@ function UserInfoTemplate(props: UserInfoTemplateProps) {
108108 const tileAvatar = (
109109 < span class = "avatar-wrapper" >
110110 < a class = "avatar-link" href = { "javascript:void(0)" } >
111- < img loading = "lazy" src = { avatar } />
111+ < img
112+ loading = "lazy"
113+ src = { avatar }
114+ style = { { display : "none" } }
115+ onLoad = { e => {
116+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
117+ const currentTarget : HTMLImageElement | null = e . currentTarget as HTMLImageElement
118+ currentTarget . style . display = ""
119+ } }
120+ onError = { e => {
121+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
122+ const currentTarget : HTMLImageElement | null = e . currentTarget as HTMLImageElement
123+ currentTarget . style . display = "none"
124+ } }
125+ />
112126 </ a >
113127 </ span >
114128 )
You can’t perform that action at this time.
0 commit comments