diff options
author | WlodekM <[email protected]> | 2024-11-30 19:21:31 +0200 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-11-30 19:21:31 +0200 |
commit | 307a1e3ece84bdafc4c85464f7847542e2d6b919 (patch) | |
tree | 0c8566533b63888083cdc9d7d8ff3157922fe1b6 | |
parent | 9a51a4caf91c455ec5072fa2d50668dd69df5c02 (diff) |
attachments
-rw-r--r-- | pages/main/page.js | 3 | ||||
-rw-r--r-- | shitstylse.css | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/pages/main/page.js b/pages/main/page.js index ab3cb78..96726a9 100644 --- a/pages/main/page.js +++ b/pages/main/page.js @@ -68,6 +68,9 @@ export function onload() { .child('span') .class('post-content') .text(msg?.content) + .child('div') + .for(msg.attachments, a => html('img').class('attachment').attr('src', a)) + .up() .up() msgArea.appendChild(elem) } diff --git a/shitstylse.css b/shitstylse.css index 2097b37..0b7cc65 100644 --- a/shitstylse.css +++ b/shitstylse.css @@ -38,6 +38,13 @@ body { color: #000000aa } +.attachment { + max-height: 25vw; + max-width: 25vw; + width: auto; + height: auto; +} + #messageInput { flex-grow: 1; } |