make log viewer vertically resizable (#1231)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- The log viewer now starts at a fixed size and supports vertical
resizing, giving users more control over the viewing area.
- The single log display has been updated to remove height restrictions,
allowing for a more flexible and extended view of log content.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Pujit Mehrotra
2025-03-17 14:48:39 -04:00
committed by GitHub
parent 4969b19a5b
commit 9285eb745e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ const onSelectOpen = () => {
<template>
<div
class="flex flex-col h-full min-h-[400px] bg-background text-foreground rounded-lg border border-border overflow-hidden"
class="flex flex-col h-[500px] resize-y bg-background text-foreground rounded-lg border border-border overflow-hidden"
>
<div class="p-4 border-b border-border">
<h2 class="text-lg font-semibold mb-4">Log Viewer</h2>
+1 -1
View File
@@ -399,7 +399,7 @@ defineExpose({ refreshLogContent });
v-else
ref="scrollViewportRef"
v-infinite-scroll="[loadMoreContent, { direction: 'top', distance: 200, canLoadMore: () => shouldLoadMore }]"
class="flex-1 overflow-y-auto max-h-[500px]"
class="flex-1 overflow-y-auto"
:class="{ 'theme-dark': isDarkMode, 'theme-light': !isDarkMode }"
>
<!-- Loading indicator for loading more content -->