aboutsummaryrefslogtreecommitdiffstats
path: root/src/style.css
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-09 16:13:58 -0700
committerAdam Soltys <[email protected]>2026-10-09 16:13:58 -0700
commit52612bc8bc4c9ea18b0520fc23c98094f304cc05 (patch)
treefc4241766ccb9ab6c9676baa34613df22796f44c /src/style.css
parent3dbd82cafb0fbada4270525bec607ba32645d26b (diff)
downloadcoinosv3-52612bc8bc4c9ea18b0520fc23c98094f304cc05.tar.gz
coinosv3-52612bc8bc4c9ea18b0520fc23c98094f304cc05.zip
@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 <div>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
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3
Diffstat (limited to 'src/style.css')
-rw-r--r--src/style.css4
1 files changed, 4 insertions, 0 deletions
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; }