Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/cli/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function App({
onQuit,
}: AppProps) {
const { exit } = useApp();
const hasStatusItems = !!statusItems && statusItems.length > 0;

// Global keyboard handler
useInput((input, key) => {
Expand All @@ -46,7 +47,7 @@ export function App({
</Box>

{/* Status bar */}
{statusItems && statusItems.length > 0 && (
{hasStatusItems && (
<Box flexDirection="column" marginTop={1}>
<Box borderStyle="single" borderTop borderBottom={false} borderLeft={false} borderRight={false} borderColor="gray" />
<Box gap={2}>
Expand All @@ -59,7 +60,7 @@ export function App({

{/* Action bar */}
{actions && actions.length > 0 && (
<Box flexDirection="column" marginTop={statusItems ? 0 : 1}>
<Box flexDirection="column" marginTop={hasStatusItems ? 0 : 1}>
<Box borderStyle="single" borderTop borderBottom={false} borderLeft={false} borderRight={false} borderColor="gray" />
<ActionBar actions={actions} />
</Box>
Expand Down
Loading