ssb: Avoid showing a broken img when viewing a profile without one assigned.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 25m49s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 25m49s
This commit is contained in:
@ -248,7 +248,14 @@ class TfProfileElement extends LitElement {
|
||||
<div style="display: flex; flex-direction: row; gap: 1em">
|
||||
${edit_profile}
|
||||
<div style="flex: 1 0 50%">
|
||||
<div><img src=${'/' + image + '/view'} style="width: 256px; height: auto"></img></div>
|
||||
${
|
||||
image
|
||||
? html`<div><img src=${'/' + image + '/view'} style="width: 256px; height: auto"></img></div>`
|
||||
: html`<div>
|
||||
<div class="w3-jumbo">😎</div>
|
||||
<div><i>Profile image not set.</i></div>
|
||||
</div>`
|
||||
}
|
||||
<div>${unsafeHTML(tfutils.markdown(description))}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user