Skip to content

Commit 0ca1645

Browse files
committed
Make StatusBar background transparent when only scroll-to-bottom button
is shown
1 parent 6bcc512 commit 0ca1645

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

cli/src/chat.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ export const Chat = ({
385385
queuedCount,
386386
clearQueue,
387387
resumeQueue,
388+
inputHasText: Boolean(inputValue),
388389
baseHandleCtrlC,
389390
})
390391

cli/src/components/status-bar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export const StatusBar = ({
9797

9898
const statusIndicatorContent = renderStatusIndicator()
9999
const elapsedTimeContent = renderElapsedTime()
100+
101+
// Only show gray background when there's status indicator or timer content
102+
const hasContent = statusIndicatorContent || elapsedTimeContent
103+
100104
return (
101105
<box
102106
style={{
@@ -106,7 +110,7 @@ export const StatusBar = ({
106110
paddingLeft: 1,
107111
paddingRight: 1,
108112
gap: 1,
109-
backgroundColor: theme.surface,
113+
backgroundColor: hasContent ? theme.surface : 'transparent',
110114
}}
111115
>
112116
<box

cli/src/hooks/use-queue-controls.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ interface UseQueueControlsParams {
55
queuedCount: number
66
clearQueue: () => string[]
77
resumeQueue: () => void
8+
inputHasText: boolean
89
baseHandleCtrlC: () => true
910
}
1011

@@ -13,6 +14,7 @@ export const useQueueControls = ({
1314
queuedCount,
1415
clearQueue,
1516
resumeQueue,
17+
inputHasText,
1618
baseHandleCtrlC,
1719
}: UseQueueControlsParams) => {
1820
const handleCtrlC = useCallback(() => {

0 commit comments

Comments
 (0)