add: increase group maximum, better read receipts

This commit is contained in:
trisua 2025-09-02 19:30:03 -04:00
parent 0b242ac5f0
commit 9546c580e7
4 changed files with 41 additions and 18 deletions

View file

@ -23,14 +23,18 @@
("class" "flex flex_col card_nest reverse")
("style" "flex: 1 0 auto")
(div
("class" "card flex flex_rev_col gap_2")
("class" "flex flex_col")
("style" "flex: 1 0 auto; max-height: 80dvh; overflow: auto")
("id" "messages_stream")
(text "{% if messages|length == 0 -%}")
(i ("class" "flex gap_ch items_center fade") (text "{{ icon \"star\" }} This is the start of the chat!"))
(text "{%- endif %}")
(div
("class" "card flex flex_rev_col gap_2")
("style" "flex: 1 0 auto")
("id" "messages_stream")
(text "{% if messages|length == 0 -%}")
(i ("class" "flex gap_ch items_center fade") (text "{{ icon \"star\" }} This is the start of the chat!"))
(text "{%- endif %}")
(div ("ui_ident" "data_marker")))
(div ("ui_ident" "data_marker")))
(div ("id" "read_receipt_zone") ("class" "card") ("style" "min-height: 32.5px; position: sticky; bottom: 0")))
(form
("class" "card flex flex_row items_center gap_2")
("onsubmit" "create_message(event)")
@ -49,5 +53,9 @@
(text "create_streamer(\"{{ chat.id }}\", document.querySelector(\"[ui_ident=data_marker]\"));
sock_con();
mark_message_read();
read_receipt();"))
read_receipt();
setTimeout(() => {
scroll_bottom();
}, 500);"))
(text "{% endblock %}")