fix(web): fallback also in actor header

This commit is contained in:
əlemi 2024-07-17 23:46:30 +02:00
parent 0d70f6d3a6
commit a7e320547a
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -61,7 +61,7 @@ pub fn ActorHeader() -> impl IntoView {
<table class="pl-2 pr-2 align w-100" style="table-layout: fixed"> <table class="pl-2 pr-2 align w-100" style="table-layout: fixed">
<tr> <tr>
<td rowspan=4 style="width: 8em"> <td rowspan=4 style="width: 8em">
<img class="avatar avatar-border mr-s" src={avatar_url} style="height: 7em; width: 7em"/> <img class="avatar avatar-border mr-s" src={avatar_url} style="height: 7em; width: 7em" onerror={format!("this.onerror=null; this.src='{FALLBACK_IMAGE_URL}';")} />
</td> </td>
<td rowspan=2 class="bottom"> <td rowspan=2 class="bottom">
<b class="big">{name}</b>{actor_type_tag} <b class="big">{name}</b>{actor_type_tag}