Skip to content

Commit 36f7346

Browse files
committed
Improve plan build mode buttons
1 parent 62d77a1 commit 36f7346

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

cli/src/components/build-mode-buttons.tsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState } from 'react'
22
import type { ChatTheme } from '../types/theme-system'
33
import { BORDER_CHARS } from '../utils/ui-constants'
4-
import { useTerminalDimensions } from '../hooks/use-terminal-dimensions'
54
export const BuildModeButtons = ({
65
theme,
76
onBuildFast,
@@ -14,25 +13,19 @@ export const BuildModeButtons = ({
1413
const [hoveredButton, setHoveredButton] = useState<'fast' | 'max' | null>(
1514
null,
1615
)
17-
const { terminalWidth } = useTerminalDimensions()
18-
const isNarrow = terminalWidth < 55
1916
return (
2017
<box
2118
style={{
22-
flexDirection: 'row',
23-
gap: 1,
19+
flexDirection: 'column',
20+
gap: 0,
2421
paddingTop: 0,
2522
paddingBottom: 0,
2623
paddingLeft: 1,
27-
alignItems: 'center',
28-
justifyContent: 'space-between',
2924
}}
3025
>
31-
{isNarrow ? null : (
32-
<text style={{ wrapMode: 'none' }}>
33-
<span fg={theme.secondary}>Ready to build?</span>
34-
</text>
35-
)}
26+
<text style={{ wrapMode: 'none' }}>
27+
<span fg={theme.secondary}>Choose an option to build this plan:</span>
28+
</text>
3629
<box
3730
style={{
3831
flexDirection: 'row',

0 commit comments

Comments
 (0)