From a55cfeba1d38af8f548d38e813485aeeea9e39b5 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 15 Aug 2024 12:24:19 -0500 Subject: [PATCH] refine knowledge page and agent page --- src/lib/scss/custom/pages/_agent.scss | 5 +- src/routes/page/agent/[agentId]/+page.svelte | 24 +++++----- .../agent/[agentId]/agent-function.svelte | 4 +- src/routes/page/knowledge-base/+page.svelte | 8 +++- .../knowledge-table/knowledge-item.svelte | 47 ++++++++++--------- 5 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/lib/scss/custom/pages/_agent.scss b/src/lib/scss/custom/pages/_agent.scss index 51e5eab..a7a484e 100644 --- a/src/lib/scss/custom/pages/_agent.scss +++ b/src/lib/scss/custom/pages/_agent.scss @@ -42,13 +42,10 @@ .agent-detail-sections { .section-min-width { - min-width: 200px; + min-width: 300px; } .agent-detail-section { - height: 800px; - margin-top: 10px; - @media (max-width: 423px) { height: fit-content; } diff --git a/src/routes/page/agent/[agentId]/+page.svelte b/src/routes/page/agent/[agentId]/+page.svelte index 80af24a..3a98674 100644 --- a/src/routes/page/agent/[agentId]/+page.svelte +++ b/src/routes/page/agent/[agentId]/+page.svelte @@ -132,28 +132,26 @@ {#if agent} - -
+ +
- - +
- -
- - -
{#if agent.routing_rules?.length > 0} {/if}
- - - - + +
+ +
+
+ +
+
{#if !!agent?.editable} diff --git a/src/routes/page/agent/[agentId]/agent-function.svelte b/src/routes/page/agent/[agentId]/agent-function.svelte index 077b9d0..487eea6 100644 --- a/src/routes/page/agent/[agentId]/agent-function.svelte +++ b/src/routes/page/agent/[agentId]/agent-function.svelte @@ -1,5 +1,5 @@
- +