aboutsummaryrefslogtreecommitdiffstats
path: root/src/style.css
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-14 19:25:06 -0700
committerAdam Soltys <[email protected]>2026-09-14 19:25:06 -0700
commitb363da843ffcaea89a9ec11ce0cacc180a824f00 (patch)
treecc50a312c77f19ba98f78f0cddcc85ab82d8e552 /src/style.css
parent2b63cdbd2eacbcbd031de6616147d467da8a7c3c (diff)
downloadcoinosv3-b363da843ffcaea89a9ec11ce0cacc180a824f00.tar.gz
coinosv3-b363da843ffcaea89a9ec11ce0cacc180a824f00.zip
A picture can be sent to a channel or a DM, encrypted, and read by Vector.
The composer grows a paper clip. A picked file is encrypted under a fresh AES-GCM key and 16-byte nonce, the ciphertext uploaded to a public Blossom host that takes anonymous blobs (blossom.ditto.pub, then nostr.download as a fallback copy), and the pointer posted the way Vector posts it: a kind-9 with empty content and a NIP-92 imeta tag carrying url, mime, key, nonce, both hashes, size and dimensions. In a DM it is a NIP-17 kind-15 file message with the same fields as flat tags and the url as content, wrapped to the peer and to ourselves. Kind-15 file messages are now accepted on receive too, rendered like any attachment, and previewed as a photo in the thread list. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'src/style.css')
-rw-r--r--src/style.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/style.css b/src/style.css
index 1ce01ad..13704f6 100644
--- a/src/style.css
+++ b/src/style.css
@@ -1007,3 +1007,4 @@ body::after {
/* an encrypted picture on its way: a box the picture's shape, then the picture */
.chat-attach-ph { display: block; width: 240px; max-width: 100%; max-height: 320px; margin-top: 6px; border-radius: 10px; background: var(--line); }
.chat-attach { display: inline-block; margin-top: 6px; }
+.chat-clip { flex: none; align-self: flex-end; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }