Adjust channel rendering to group related messages

This commit is contained in:
Mikayla 2023-10-04 14:29:08 -07:00
parent 5074bccae4
commit 73e78a2257
No known key found for this signature in database
3 changed files with 126 additions and 68 deletions

View file

@ -87,7 +87,19 @@ export default function chat_panel(): any {
...text(layer, "sans", "base", { weight: "bold" }),
},
timestamp: text(layer, "sans", "base", "disabled"),
margin: { bottom: SPACING }
margin: { top: SPACING }
},
last_message_bottom_spacing: SPACING,
continuation_message: {
body: text(layer, "sans", "base"),
sender: {
margin: {
right: 8,
},
...text(layer, "sans", "base", { weight: "bold" }),
},
timestamp: text(layer, "sans", "base", "disabled"),
},
pending_message: {
body: text(layer, "sans", "base"),