Skip to content

Commit 7d1e5f0

Browse files
authored
Merge pull request #317 from iceljc/features/refine-chat-window
refine conv states display
2 parents 906121f + 4c53afa commit 7d1e5f0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/routes/page/conversation/[conversationId]/conv-overview.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<CardBody>
1212
<div class="text-center">
1313
<!--<img src={adobephotoshop} alt="" height="50" class="mx-auto d-block" />-->
14-
<h5 class="mt-3 mb-1">{conversation.title}</h5>
14+
<h5 class="mt-3 mb-1 ellipsis">{conversation.title}</h5>
1515
<p class="text-muted mb-0">{utcToLocal(conversation.created_time)}</p>
1616
</div>
1717

src/routes/page/conversation/[conversationId]/conv-states.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<script>
2-
import { Button, Card, CardBody, CardTitle} from '@sveltestrap/sveltestrap';
3-
import jsonview from '@pgrabovets/json-view';
42
import { onMount } from 'svelte';
3+
import { Card, CardBody, CardTitle} from '@sveltestrap/sveltestrap';
4+
import jsonview from '@pgrabovets/json-view';
5+
import { formatObject } from '$lib/helpers/utils/common';
56
67
/** @type {import('$conversationTypes').ConversationModel} */
78
export let conversation;
89
910
onMount(() => {
1011
// create json tree object
11-
const tree = jsonview.create(conversation.states);
12+
const tree = jsonview.create(formatObject(conversation.states));
1213
1314
// render tree into dom element
1415
jsonview.render(tree, document.querySelector('#conversationStates'));

0 commit comments

Comments
 (0)