Skip to content

Commit f727d35

Browse files
author
Jicheng Lu
committed
change instant log size
1 parent 281e945 commit f727d35

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

src/lib/scss/_variables.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,4 +1808,7 @@ $nested-kbd-font-weight: null; // Deprecated in v5.2.0, removing in v
18081808

18091809
$pre-color: null;
18101810

1811-
$faded-color: #BCBCBC;
1811+
$faded-color: #BCBCBC;
1812+
1813+
$log-sec-height-lg: 400px;
1814+
$log-sec-height-sm: 300px;

src/lib/scss/custom/pages/_chat.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,8 @@
375375
border-radius: 10px;
376376
border: 1px solid var(--bs-secondary);
377377
margin: 0px 60px;
378-
flex: 0 0 400px;
379378
display: flex;
380379
flex-direction: column;
381-
height: 400px;
382-
min-height: 400px;
383380

384381
.close-icon {
385382
font-size: 20px;
@@ -391,6 +388,18 @@
391388
}
392389
}
393390
}
391+
392+
.instant-log-sec-lg {
393+
flex: 0 0 $log-sec-height-lg;
394+
height: $log-sec-height-lg;
395+
min-height: $log-sec-height-lg;
396+
}
397+
398+
.instant-log-sec-sm {
399+
flex: 0 0 $log-sec-height-sm;
400+
height: $log-sec-height-sm;
401+
min-height: $log-sec-height-sm;
402+
}
394403
}
395404

396405
.nav-group {

src/routes/chat/[agentId]/[conversationId]/instant-log/instant-log.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</div>
119119
</div>
120120
<div class="log-body instant-log-body">
121-
<div class="log-list instant-log-section" class:hide={!!!msgStateLogs || msgStateLogs?.length === 0}>
121+
<div class="log-list instant-log-section instant-log-sec-lg" class:hide={!!!msgStateLogs || msgStateLogs?.length === 0}>
122122
<div class="close-icon">
123123
<span
124124
style="float: right;"
@@ -139,7 +139,7 @@
139139
</div>
140140
</div>
141141

142-
<div class="log-list instant-log-section" class:hide={!!!agentQueueLogs || agentQueueLogs?.length === 0}>
142+
<div class="log-list instant-log-section instant-log-sec-sm" class:hide={!!!agentQueueLogs || agentQueueLogs?.length === 0}>
143143
<div class="close-icon">
144144
<span
145145
style="float: right;"

0 commit comments

Comments
 (0)