From 52612bc8bc4c9ea18b0520fc23c98094f304cc05 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 9 Oct 2026 16:13:58 -0700 Subject: @mentions: "@" and a few letters in a post, a reply or an edit open a list of people under the box — the ones you follow whose name matches first (at once, from what's here), then the header's people search. Picking one (tap, Tab or Enter) puts nostr:npub… in the text, shown everywhere as @name (NIP-27), and the post or reply goes out with their p tag so they're told; Escape closes. coinos-text's setSelectionRange walks into the
s Chrome wraps lines in after an Enter — it used to put any position past the first line at the end of the field. tools/mention-ac-test.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3 --- src/style.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/style.css') diff --git a/src/style.css b/src/style.css index 4df04d7..5e3ddd7 100644 --- a/src/style.css +++ b/src/style.css @@ -1624,3 +1624,7 @@ body::after { .note-translate-btn:hover { color: var(--ink); } /* a zap receipt shown as a row: what was sent, in the zap colour */ .note-zap-line { color: #e6a800; font-weight: 650; } +/* @mention suggestions under a composer */ +.mention-ac { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; max-height: 280px; overflow-y: auto; } +.mention-ac:empty { display: none; } +.mention-ac .item { cursor: pointer; padding: 6px 10px; } -- cgit v1.2.3