Skip to content

Commit ff683af

Browse files
committed
refactor(eb-app-ui): sync pri/message/text.svelte
1 parent ad5cc28 commit ff683af

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • machines/eb-app-ui/home/ui/galaxy-dev/src/lib/components/pri/message

machines/eb-app-ui/home/ui/galaxy-dev/src/lib/components/pri/message/text.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { Toast } from "bootstrap";
44
import { actionById } from "$lib/api";
55
import { delMessage, watchTextMessage } from "$lib/pri/intercom";
6+
import { toLocaleTime } from "$lib/common";
67
import type { IntercomMessage222 } from "$lib/types";
78
89
interface Props {
@@ -57,6 +58,9 @@
5758
{msg.contact_name || "unknown"}
5859
</span>
5960
<span class="fs-6 me-auto mt-auto mb-1"></span>
61+
<span class="text-muted fw-bold me-3 mt-auto mb-1">
62+
{toLocaleTime(msg.created_at) || ""}
63+
</span>
6064
<button
6165
type="button"
6266
class="btn-close"
@@ -68,7 +72,7 @@
6872
<div class="d-flex justify-content-left overflow-auto">
6973
<p
7074
class="d-inline-block card-text text-muted text-start w-auto mt-3"
71-
style="max-height: 200px; max-width: 90%; white-space: pre"
75+
style="max-height: 200px; max-width: 90%; white-space: pre-wrap"
7276
>
7377
{msg.intercom_attr.message || ""}
7478
</p>

0 commit comments

Comments
 (0)