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:
parent
3f3deb665c
commit
7ef4d814ef
@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "tildefriends-app",
|
||||
"emoji": "🦀",
|
||||
"previous": "&S5oR3IlKRh5xZbC55c0jeBiO2lv1LCBR5GepCPe4YL0=.sha256"
|
||||
"previous": "&J6o2XRWWAirhnQbEa6Pi0QvAex6jTH1o23npX7x82aY=.sha256"
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user