mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-30 00:41:09 +00:00
Fix displaying missing images
This commit is contained in:
parent
e445b11019
commit
5b5afea786
@ -67,21 +67,25 @@ const ArticleSidebar: Component< { id?: string, user: PrimalUser, article: Prima
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class={styles.headingReads}>
|
||||
More Reads from {userName(props.article.user)}
|
||||
</div>
|
||||
|
||||
<Show
|
||||
when={!isFetchingArticles()}
|
||||
fallback={
|
||||
<Loader />
|
||||
}
|
||||
>
|
||||
<div class={styles.section}>
|
||||
<For each={recomended}>
|
||||
{(note) => <ArticleShort article={note} />}
|
||||
</For>
|
||||
</div>
|
||||
<Show
|
||||
when={recomended.length > 0}
|
||||
>
|
||||
<div class={styles.headingReads}>
|
||||
More Reads from {userName(props.article.user)}
|
||||
</div>
|
||||
|
||||
<div class={styles.section}>
|
||||
<For each={recomended}>
|
||||
{(note) => <ArticleShort article={note} />}
|
||||
</For>
|
||||
</div>
|
||||
</Show>
|
||||
</Show>
|
||||
|
||||
</Show>
|
||||
|
@ -16,6 +16,7 @@
|
||||
flex-direction: column;
|
||||
|
||||
.userName {
|
||||
display: flex;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
|
@ -792,16 +792,16 @@ const Longform: Component< { naddr: string } > = (props) => {
|
||||
</Wormhole>
|
||||
<div class={styles.header}>
|
||||
<div class={styles.author}>
|
||||
<Show when={author}>
|
||||
<Avatar user={author} size="xs" />
|
||||
<Show when={store.article?.user}>
|
||||
<Avatar user={store.article?.user} size="xs" />
|
||||
<div class={styles.userInfo}>
|
||||
<div class={styles.userName}>
|
||||
{userName(author)}
|
||||
<VerificationCheck user={author} />
|
||||
{userName(store.article?.user)}
|
||||
<VerificationCheck user={store.article?.user} />
|
||||
</div>
|
||||
<Show when={author.nip05}>
|
||||
<Show when={store.article?.user.nip05}>
|
||||
<div class={styles.nip05}>
|
||||
{nip05Verification(author)}
|
||||
{nip05Verification(store.article?.user)}
|
||||
</div>
|
||||
</Show>
|
||||
</div>
|
||||
@ -839,11 +839,13 @@ const Longform: Component< { naddr: string } > = (props) => {
|
||||
{store.article?.title}
|
||||
</div>
|
||||
|
||||
<NoteImage
|
||||
class={`${styles.image} hero_image_${naddr()}`}
|
||||
src={store.article?.image}
|
||||
width={640}
|
||||
/>
|
||||
<Show when={(store.article?.image || '').length > 0}>
|
||||
<NoteImage
|
||||
class={`${styles.image} hero_image_${naddr()}`}
|
||||
src={store.article?.image}
|
||||
width={640}
|
||||
/>
|
||||
</Show>
|
||||
|
||||
<div class={styles.summary}>
|
||||
<div class={styles.border}></div>
|
||||
@ -862,7 +864,8 @@ const Longform: Component< { naddr: string } > = (props) => {
|
||||
<PrimalMarkdown
|
||||
noteId={props.naddr}
|
||||
content={store.article?.content || ''}
|
||||
readonly={true} />
|
||||
readonly={true}
|
||||
/>
|
||||
|
||||
<div class={styles.tags}>
|
||||
<For each={store.article?.tags}>
|
||||
|
Loading…
Reference in New Issue
Block a user