Add proper p tags for replies and mentions
This commit is contained in:
parent
a8aebe8862
commit
33f650276d
4 changed files with 89 additions and 1 deletions
|
|
@ -105,6 +105,17 @@
|
|||
textareaEl?.focus();
|
||||
}
|
||||
|
||||
// Warm the kind:10002 cache for thread participants so relay hints are
|
||||
// ready by publish time. Best-effort, dedup across focus events.
|
||||
const prefetched = new Set<string>();
|
||||
function onTextareaFocus() {
|
||||
for (const pk of contextPubkeys) {
|
||||
if (prefetched.has(pk)) continue;
|
||||
prefetched.add(pk);
|
||||
loadRelayList(pk).catch(() => {});
|
||||
}
|
||||
}
|
||||
|
||||
function togglePreview() {
|
||||
previewing = !previewing;
|
||||
}
|
||||
|
|
@ -334,6 +345,7 @@
|
|||
onkeydown={onTextareaKeydown}
|
||||
onclick={onTextareaClickOrSelect}
|
||||
onkeyup={onTextareaClickOrSelect}
|
||||
onfocus={onTextareaFocus}
|
||||
onblur={onTextareaBlur}
|
||||
aria-autocomplete="list"
|
||||
aria-controls={mentionOpen ? "mention-listbox" : undefined}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue