diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e81647b..3fbef71c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - [x] Tighten up note actions on mobile - [x] Don't show cached notes on relay-specific feeds - [x] Allow copying note text without opening the note +- [x] Use real links so cmd+click works # 0.3.10 diff --git a/src/app/shared/Compose.svelte b/src/app/shared/Compose.svelte index b6b558eb..d25adeef 100644 --- a/src/app/shared/Compose.svelte +++ b/src/app/shared/Compose.svelte @@ -1,6 +1,6 @@ - + {value.entity.slice(0, 16) + "..."} diff --git a/src/app/shared/NoteContentKind30023.svelte b/src/app/shared/NoteContentKind30023.svelte index a4eb899f..5ba22aa3 100644 --- a/src/app/shared/NoteContentKind30023.svelte +++ b/src/app/shared/NoteContentKind30023.svelte @@ -8,6 +8,7 @@ import {Tags, fromNostrURI} from "src/util/nostr" import {urlIsMedia} from "src/util/notes" import Chip from "src/partials/Chip.svelte" + import Anchor from "src/partials/Anchor.svelte" import NoteContentLink from "src/app/shared/NoteContentLink.svelte" import {router} from "src/app/router" import {displayPubkey} from "src/engine" @@ -26,8 +27,6 @@ const regex = /(nostr:)?n(event|ote|pub|profile|addr)\w+/g const {title, summary, image} = tags.asMeta() as {[k: string]: string} - const openTopic = topic => router.at("topics").of(topic).open() - const convertEntities = markdown => { for (const uri of markdown.match(regex) || []) { const entity = fromNostrURI(uri) @@ -79,9 +78,9 @@ {/if}
{#each tags.topics() as topic} - openTopic(topic)}> - #{topic} - + + #{topic} + {/each}
diff --git a/src/app/shared/NoteContentPerson.svelte b/src/app/shared/NoteContentPerson.svelte index fd235261..09f232d2 100644 --- a/src/app/shared/NoteContentPerson.svelte +++ b/src/app/shared/NoteContentPerson.svelte @@ -9,6 +9,6 @@ const person = derivePerson(pubkey) -@ +@ {displayPerson($person)} diff --git a/src/app/shared/NoteContentTopic.svelte b/src/app/shared/NoteContentTopic.svelte index cfb976bc..673238d4 100644 --- a/src/app/shared/NoteContentTopic.svelte +++ b/src/app/shared/NoteContentTopic.svelte @@ -5,6 +5,6 @@ export let value - + #{value} diff --git a/src/app/shared/NoteReply.svelte b/src/app/shared/NoteReply.svelte index 6b676dac..1795deaa 100644 --- a/src/app/shared/NoteReply.svelte +++ b/src/app/shared/NoteReply.svelte @@ -125,7 +125,7 @@
{#each data.mentions as pubkey} - removeMention(pubkey)}> + removeMention(pubkey)}> {displayPubkey(pubkey)} {:else} diff --git a/src/app/shared/PersonBadge.svelte b/src/app/shared/PersonBadge.svelte index c8ffcd7d..826feac8 100644 --- a/src/app/shared/PersonBadge.svelte +++ b/src/app/shared/PersonBadge.svelte @@ -20,7 +20,6 @@
{:else} diff --git a/src/app/shared/PersonBadgeSmall.svelte b/src/app/shared/PersonBadgeSmall.svelte index 0733a8f3..50e91eb9 100644 --- a/src/app/shared/PersonBadgeSmall.svelte +++ b/src/app/shared/PersonBadgeSmall.svelte @@ -16,7 +16,6 @@ {:else} diff --git a/src/app/views/Apps.svelte b/src/app/views/Apps.svelte index 150c6e82..16955536 100644 --- a/src/app/views/Apps.svelte +++ b/src/app/views/Apps.svelte @@ -128,18 +128,18 @@ {/if} {#if app.profile.lud16} -
- copy("Address", app.profile.lud16)}> + copy("Address", app.profile.lud16)}> + {app.profile.lud16} -
+
{/if} {#if app.profile.nip05} -
- goToNip05(app.profile.nip05)}> + goToNip05(app.profile.nip05)}> + {app.profile.nip05} -
+
{/if} {#if app.recs.length > 0} diff --git a/src/partials/Anchor.svelte b/src/partials/Anchor.svelte index bd570132..e6ee7cdd 100644 --- a/src/partials/Anchor.svelte +++ b/src/partials/Anchor.svelte @@ -1,12 +1,10 @@ {#if tag === "a"} - + {:else if tag === "button"} diff --git a/src/partials/Chip.svelte b/src/partials/Chip.svelte index a548495d..3bb4ab46 100644 --- a/src/partials/Chip.svelte +++ b/src/partials/Chip.svelte @@ -2,7 +2,7 @@ import cx from "classnames" export let theme = "dark" - export let onClick = null + export let onRemove = null const className = cx($$props.class, "inline-block rounded-full border border-solid py-1 px-2", { "border-gray-1": theme === "dark", @@ -10,10 +10,10 @@ }) -
+
- {#if onClick} - + {#if onRemove} + {/if}
diff --git a/src/partials/MultiSelect.svelte b/src/partials/MultiSelect.svelte index 3c5957e1..cdda6979 100644 --- a/src/partials/MultiSelect.svelte +++ b/src/partials/MultiSelect.svelte @@ -72,7 +72,7 @@
{#each value as item} - remove(item)}> + remove(item)}> {item} diff --git a/src/util/html.ts b/src/util/html.ts index f5d4c1fa..c7238122 100644 --- a/src/util/html.ts +++ b/src/util/html.ts @@ -85,12 +85,6 @@ export const escapeHtml = html => { return div.innerHTML } -export const killEvent = e => { - e.preventDefault() - e.stopPropagation() - e.stopImmediatePropagation() -} - export const isMobile = localStorage.mobile || window.navigator.maxTouchPoints > 1 || window.innerWidth < 400