Add left mergin to messages

This commit is contained in:
pjht 2024-10-08 21:26:34 -05:00
parent fdd10f7065
commit df8337fea4
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -128,7 +128,7 @@ impl Component for Home {
>
{ self.messages.iter().rev().map(|msg| html!{
<div class="d-flex justify-content-between align-items-start">
<div class="me-2">{msg.message.clone()}</div>
<div class="ms-1 me-2">{msg.message.clone()}</div>
<div class="me-2 text-nowrap">{msg.time.format("%I:%M:%S %p").to_string()}</div>
</div>}
).collect::<Vec<_>>() }