Skip to content

Commit

Permalink
Fix reply-to
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed Feb 7, 2025
1 parent 054a82f commit ecf8035
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions web/src/lib/components/items/OnelineNote.svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<script lang="ts">
import { metadataStore } from '$lib/cache/Events';
import { robohash, type EventItem } from '$lib/Items';
import { type EventItem } from '$lib/Items';
import IconMessageCircle from '@tabler/icons-svelte/icons/message-circle';
import OnelineContent from '../OnelineContent.svelte';
import ProfileIcon from '../profile/ProfileIcon.svelte';
export let item: EventItem;
$: metadata = item ? $metadataStore.get(item.event.pubkey) : undefined;
</script>

<article class="timeline-item">
<div class="icon"><IconMessageCircle /></div>
<div><img src={metadata?.picture ?? robohash(item.event.pubkey)} alt="" /></div>
<div class="picture"><ProfileIcon pubkey={item.event.pubkey} /></div>
<div class="content">
<OnelineContent content={item.event.content} tags={item.event.tags} />
</div>
Expand All @@ -29,10 +27,10 @@
margin: auto 0;
}
img {
.picture {
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
min-width: 1.5rem; /* for flex */
}
.content {
Expand Down

0 comments on commit ecf8035

Please sign in to comment.