From d9d12252e81a7878b07decd4bc0fdf3f9a216958 Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Mon, 19 Aug 2024 01:53:07 -0500 Subject: [PATCH] add knowledge data id --- src/lib/scss/custom/pages/_knowledgebase.scss | 2 +- src/routes/page/knowledge-base/+page.svelte | 1 + .../page/knowledge-base/knowledge-table/knowledge-item.svelte | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/scss/custom/pages/_knowledgebase.scss b/src/lib/scss/custom/pages/_knowledgebase.scss index aa8553c..3320539 100644 --- a/src/lib/scss/custom/pages/_knowledgebase.scss +++ b/src/lib/scss/custom/pages/_knowledgebase.scss @@ -104,7 +104,7 @@ overflow: hidden; .knowledge-text { - width: 40%; + width: 30%; max-width: 50px; .ellipsis { diff --git a/src/routes/page/knowledge-base/+page.svelte b/src/routes/page/knowledge-base/+page.svelte index 9f7faed..728dc8b 100644 --- a/src/routes/page/knowledge-base/+page.svelte +++ b/src/routes/page/knowledge-base/+page.svelte @@ -322,6 +322,7 @@ + diff --git a/src/routes/page/knowledge-base/knowledge-table/knowledge-item.svelte b/src/routes/page/knowledge-base/knowledge-table/knowledge-item.svelte index e76b52f..de5e0cb 100644 --- a/src/routes/page/knowledge-base/knowledge-table/knowledge-item.svelte +++ b/src/routes/page/knowledge-base/knowledge-table/knowledge-item.svelte @@ -68,6 +68,9 @@ {/if} +
{$_('Id')} {$_('Question')} {$_('Answer')}
+
{data?.id || ''}
+
{data?.data?.question || data?.data?.text || ''}