@@ -6,7 +6,7 @@ import { cn } from '@/lib/utils.ts';
6
6
import { useLogs } from './use-logs' ;
7
7
import { useEffect , useRef } from 'react' ;
8
8
9
- const maxHeightInPx = 320 ;
9
+ const DRAWER_HEIGHT = 320 ;
10
10
11
11
export default function BottomDrawer ( ) {
12
12
const { logs, clearLogs, open, togglePane, closePane } = useLogs ( ) ;
@@ -60,7 +60,10 @@ export default function BottomDrawer() {
60
60
'flex flex-col w-full overflow-hidden transition-all duration-200 ease-in-out' ,
61
61
open ? 'flex-grow' : 'flex-shrink-0 h-8' ,
62
62
) }
63
- style = { { maxHeight : open ? `${ maxHeightInPx } px` : '2rem' } }
63
+ style = { {
64
+ maxHeight : open ? `${ DRAWER_HEIGHT } px` : '2rem' ,
65
+ minHeight : open ? `${ DRAWER_HEIGHT } px` : '2rem' ,
66
+ } }
64
67
>
65
68
< div className = "flex-shrink-0 flex items-center justify-between border-t border-b h-8 px-1 w-full bg-muted" >
66
69
< button
@@ -112,7 +115,7 @@ export default function BottomDrawer() {
112
115
< pre
113
116
className = { cn ( 'font-mono cursor-text whitespace-pre-wrap' , {
114
117
'text-red-300' : log . type === 'stderr' ,
115
- 'text-tertiary -foreground' : log . type === 'info' ,
118
+ 'text-secondary -foreground' : log . type === 'info' ,
116
119
} ) }
117
120
>
118
121
{ log . message }
0 commit comments