diff --git a/src/routes/chat/[agentId]/[conversationId]/richContent/rc-markdown.svelte b/src/lib/common/Markdown.svelte similarity index 78% rename from src/routes/chat/[agentId]/[conversationId]/richContent/rc-markdown.svelte rename to src/lib/common/Markdown.svelte index dcb84bd4..9c5aa32c 100644 --- a/src/routes/chat/[agentId]/[conversationId]/richContent/rc-markdown.svelte +++ b/src/lib/common/Markdown.svelte @@ -17,8 +17,6 @@ } -
-
- {@html displayText} -
-
\ No newline at end of file + + {@html displayText} + \ No newline at end of file diff --git a/src/lib/scss/app.scss b/src/lib/scss/app.scss index 97378f1b..ffd76e43 100644 --- a/src/lib/scss/app.scss +++ b/src/lib/scss/app.scss @@ -248,4 +248,19 @@ button:focus { .clickable { cursor: pointer; +} + +.markdown-container { + pre { + -ms-overflow-style: none !important; + } + + pre::-webkit-scrollbar { + display: none !important; + } + + p { + margin-top: 0 !important; + margin-bottom: 0 !important; + } } \ No newline at end of file diff --git a/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte b/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte index 27c16730..6c160309 100644 --- a/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte @@ -1,6 +1,7 @@ -
+
{#if data?.name?.length > 0} @@ -59,8 +60,12 @@ {`${utcToLocal(data?.created_at, 'hh:mm:ss.SSS A, MMM DD YYYY')} `}
-
- {@html replaceNewLine(data?.content)} +
+
{#if includedSources.includes(data.source)} diff --git a/src/routes/chat/[agentId]/[conversationId]/richContent/rich-content.svelte b/src/routes/chat/[agentId]/[conversationId]/richContent/rich-content.svelte index c952b803..4d9415a1 100644 --- a/src/routes/chat/[agentId]/[conversationId]/richContent/rich-content.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/richContent/rich-content.svelte @@ -1,6 +1,6 @@ - +
+
+ +
+
{#if displayExtraElements} {#if message?.rich_content?.message?.rich_type === RichType.QuickReply} diff --git a/src/routes/page/conversation/[conversationId]/+page.svelte b/src/routes/page/conversation/[conversationId]/+page.svelte index 3dc4c649..4395395c 100644 --- a/src/routes/page/conversation/[conversationId]/+page.svelte +++ b/src/routes/page/conversation/[conversationId]/+page.svelte @@ -46,11 +46,11 @@ {#if conversation} - + - + diff --git a/src/routes/page/conversation/[conversationId]/conv-dialogs.svelte b/src/routes/page/conversation/[conversationId]/conv-dialogs.svelte index f0c32873..40733c2a 100644 --- a/src/routes/page/conversation/[conversationId]/conv-dialogs.svelte +++ b/src/routes/page/conversation/[conversationId]/conv-dialogs.svelte @@ -1,9 +1,9 @@ - {$_('Dialogs')} +
+
+ {$_('Dialogs')} +
+
+ directToChat()}> + + +
+
    {#each dialogs as dialog}