remove notes from people

This commit is contained in:
Jon Staab
2024-10-21 14:03:36 -07:00
parent ee6c79cad3
commit f93f47ffe7
4 changed files with 13 additions and 33 deletions
+1 -1
View File
@@ -86,7 +86,7 @@
</Button>
{:else if space}
<p class="mb-4 text-2xl center gap-2">
<Icon icon="remote-controller-minimalistic" size={7} />
<Icon icon="compass-big" size={7} />
<span class="text-primary">{displayRelayUrl(space)}</span>
</p>
<div class="grid sm:grid-cols-3 gap-2">
+1 -14
View File
@@ -42,24 +42,11 @@
})
</script>
<div class="card2 bg-alt flex flex-col shadow-xl">
<div class="card2 bg-alt col-2 shadow-xl">
<Profile {pubkey} />
<ProfileInfo {pubkey} />
{#if roots.length > 0}
{@const event = first(sortBy(e => -e.created_at, roots))}
{@const relays = ctx.app.router.Event(event).getUrls()}
{@const nevent = nip19.neventEncode({id: event.id, relays})}
{@const following = getPubkeyTagValues(getListTags($userFollows)).includes(pubkey)}
<div class="divider" />
<button type="button" class="chat chat-start flex cursor-default max-w-full ml-2" on:click|stopPropagation>
<div class="bg-alt col-4 chat-bubble text-left">
<Content showEntire hideMedia={!following} {event} />
<Link external href={entityLink(nevent)} class="row-2 group justify-end whitespace-nowrap">
<Icon icon="link-round" size={3} />
<p class="text-xs">{formatTimestamp(event.created_at)}</p>
</Link>
</div>
</button>
<div class="flex gap-2">
<div class="bg-alt badge badge-neutral border-none">
{roots.length} recent {roots.length === 1 ? "note" : "notes"}
+1 -1
View File
@@ -75,7 +75,7 @@
<Avatar icon="letter" class="!h-10 !w-10" />
</PrimaryNavItem>
<PrimaryNavItem title="Spaces" on:click={showSpacesMenu}>
<SpaceAvatar />
<Avatar icon="add-circle" class="!h-10 !w-10" />
</PrimaryNavItem>
</div>
<PrimaryNavItem title="Settings" on:click={showSettingsMenu}>
+10 -17
View File
@@ -4,7 +4,6 @@
import {WEEK, ctx, ago} from "@welshman/lib"
import {WRAP} from "@welshman/util"
import {pubkey, subscribe} from "@welshman/app"
import {fly} from "@lib/transition"
import Icon from "@lib/components/Icon.svelte"
import Page from "@lib/components/Page.svelte"
import Button from "@lib/components/Button.svelte"
@@ -38,23 +37,17 @@
<SecondaryNav>
<SecondaryNavSection>
<div in:fly>
<SecondaryNavItem href={notesPath}>
<Icon icon="notes-minimalistic" /> Your Notes
</SecondaryNavItem>
</div>
<div in:fly={{delay: 50}}>
<SecondaryNavHeader>
Chats
<Button on:click={startChat}>
<Icon icon="add-circle" />
</Button>
</SecondaryNavHeader>
</div>
<SecondaryNavItem href={notesPath}>
<Icon icon="notes-minimalistic" /> Your Notes
</SecondaryNavItem>
<SecondaryNavHeader>
Chats
<Button on:click={startChat}>
<Icon icon="add-circle" />
</Button>
</SecondaryNavHeader>
</SecondaryNavSection>
<label
class="input input-sm input-bordered mx-6 -mt-4 mb-2 flex items-center gap-2"
in:fly={{delay: 100}}>
<label class="input input-sm input-bordered mx-6 -mt-4 mb-2 flex items-center gap-2">
<Icon icon="magnifer" />
<input bind:value={term} class="grow" type="text" />
</label>