[frontend/components] Fallback avatar to user identicon
This commit is contained in:
parent
c5f8bac5e2
commit
ff4d202305
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<img class="avatar"
|
<img class="avatar"
|
||||||
style="--size: @Size;"
|
style="--size: @Size;"
|
||||||
src="@(LoadError ? "ImageFallback.png" : User.AvatarUrl)"
|
src="@(LoadError ? $"/identicon/{User.Id}" : User.AvatarUrl)"
|
||||||
alt="@(User.AvatarAlt ?? FallbackAlt())"
|
alt="@(User.AvatarAlt ?? FallbackAlt())"
|
||||||
title="@(LoadError ? Loc["Avatar failed to load"] : Title ? User.AvatarAlt ?? FallbackAlt() : "")"
|
title="@(LoadError ? Loc["Avatar failed to load"] : Title ? User.AvatarAlt ?? FallbackAlt() : "")"
|
||||||
role="@Role"
|
role="@Role"
|
||||||
|
|
Loading…
Add table
Reference in a new issue