generated from t/malachite
add: base chat ui
This commit is contained in:
parent
747a05d649
commit
f53eb3d367
10 changed files with 176 additions and 1031 deletions
|
@ -40,3 +40,12 @@
|
|||
(text "{%- endif %}")
|
||||
(text "{%- endif %}")
|
||||
(text "{%- endmacro %}")
|
||||
|
||||
(text "{% macro message(message) -%}")
|
||||
(div
|
||||
("class" "flex w_full gap_ch message {%- if user.id == message.owner %} justify_right mine {%- endif %}")
|
||||
(div
|
||||
("class" "inner no_p_margin")
|
||||
(text "{{ message.content|markdown|safe }}"))
|
||||
(text "{{ components::avatar(id=uid) }}"))
|
||||
(text "{%- endmacro %}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue