mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Cap resume picker redraw height
This commit is contained in:
@@ -106,7 +106,7 @@ export const ResumeSessionPicker: React.FC<ResumeSessionPickerProps> = ({
|
||||
const { stdout } = useStdout()
|
||||
const terminalWidth = stdout.columns || 80
|
||||
const terminalHeight = stdout.rows || 24
|
||||
const visibleCount = Math.max(5, terminalHeight - 8)
|
||||
const visibleCount = Math.min(16, Math.max(5, terminalHeight - 8))
|
||||
const [state, setState] = useState<PickerState>({
|
||||
query: '',
|
||||
selectedIndex: 0,
|
||||
|
||||
Reference in New Issue
Block a user