Skip to content

Commit 6db7bf9

Browse files
committed
Adjust position.
1 parent 9328cbf commit 6db7bf9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
<div class="border-bottom" style="height: 10%; padding: 2%">
518518
<div class="row">
519519
<div class="col-md-4 col-7">
520-
<h5 class="font-size-15 mb-1">{agent?.name}</h5>
520+
<h5 class="font-size-15 m-1">{agent?.name}</h5>
521521
<p class="text-muted mb-0">
522522
<i class="mdi mdi-circle text-success align-middle me-1" /> Active now
523523
</p>
@@ -559,7 +559,7 @@
559559
</li>
560560
561561
<li class="list-inline-item d-sm-inline-block">
562-
<button type="submit" class="btn btn-primary btn-rounded chat-send waves-effect waves-light"
562+
<button type="submit" class="btn btn-primary btn-rounded btn-sm chat-send waves-effect waves-light"
563563
on:click={() => endChat()}
564564
>
565565
<span class="d-none d-sm-inline-block me-2" >End Conversation</span> <i class="mdi mdi-window-close"></i>

src/routes/page/agent/router/routing-flow.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
let posX = 0;
5959
const nodeSpaceX = 300, nodeSpaceY = 120;
6060
61-
let posY = agents.length > 0 ?
62-
nodeSpaceY * (agents.length + 1) / 2 :
63-
nodeSpaceY * (routers.length + 1) / 2;
61+
let posY = routers.length > 0 && !includeTaskAgent ?
62+
nodeSpaceY * (routers.length + 1) / 2 :
63+
nodeSpaceY * (agents.length + 1) / 2;
6464
6565
// add end-user node
6666
let userNodeId = editor.addNode('user', 0, 1, posX, posY, 'user',
@@ -212,5 +212,5 @@
212212
<label class={`btn btn-${includeStaticAgent ? "" : "outline-"}primary`} for="btncheck3">Static Agent</label>
213213
</div>
214214
215-
<div id="drawflow" style="height: 78vh; width: 100%">
215+
<div id="drawflow" style="height: 72vh; width: 100%">
216216
</div>

0 commit comments

Comments
 (0)