Skip to content

Commit 05624ec

Browse files
author
Jicheng Lu
committed
responsive styles
1 parent 6feddb0 commit 05624ec

File tree

3 files changed

+53
-8
lines changed

3 files changed

+53
-8
lines changed

src/lib/scss/custom/pages/_agent.scss

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959
}
6060
}
61-
61+
6262
.list-add {
6363
font-size: 20px;
6464

@@ -94,10 +94,10 @@
9494
@media (max-width: 423px) {
9595
height: fit-content;
9696
}
97-
97+
9898
.agent-prompt-container {
9999
height: 100%;
100-
100+
101101
.agent-prompt-header {
102102
background-color: white;
103103
padding: 15px;
@@ -167,7 +167,7 @@
167167
box-shadow: none !important;
168168
}
169169
}
170-
170+
171171
.utility-wrapper {
172172
border: 1px dotted var(--bs-primary);
173173
border-radius: 5px;
@@ -291,4 +291,49 @@
291291
overflow-x: auto;
292292
scrollbar-width: thin;
293293
}
294-
}
294+
}
295+
296+
// Responsive adjustments for utility
297+
@media (max-width: 768px) {
298+
.agent-utility-container {
299+
padding: 0 5px;
300+
301+
.utility-wrapper {
302+
.utility-row-primary {
303+
flex-direction: column;
304+
}
305+
306+
.utility-row {
307+
.utility-label,
308+
.utility-value {
309+
width: 100%;
310+
}
311+
312+
.utility-value {
313+
flex-direction: column;
314+
}
315+
316+
.utility-input,
317+
.utility-delete {
318+
width: 100%;
319+
}
320+
321+
.utility-delete {
322+
display: flex;
323+
justify-content: flex-end;
324+
align-items: end;
325+
margin-top: 6px;
326+
}
327+
}
328+
329+
.utility-row-secondary {
330+
.utility-content {
331+
.utility-list-item {
332+
flex-direction: column;
333+
gap: 6px;
334+
}
335+
}
336+
}
337+
}
338+
}
339+
}

src/routes/page/agent/[agentId]/agent-components/agent-rule.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
title="Compile code script"
333333
>
334334
<i
335-
class="mdi mdi-file-code"
335+
class="mdi mdi-code-braces-box"
336336
role="link"
337337
tabindex="0"
338338
on:keydown={() => {}}

src/routes/page/agent/[agentId]/agent-tabs.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
let selectedTab;
5151
5252
/** @type {any[]}*/
53-
let tabs = [
53+
const tabs = [
5454
{ name: 'agent-llm-config', displayText: 'LLm Configs' },
5555
{ name: 'agent-routing-rule', displayText: 'Routing' },
5656
{ name: 'agent-utility', displayText: 'Utilities' },
@@ -60,7 +60,7 @@
6060
];
6161
6262
onMount(() => {
63-
selectedTab = tabs[4]?.name;
63+
selectedTab = tabs[0]?.name;
6464
});
6565
6666
/** @param {string} selected */

0 commit comments

Comments
 (0)