MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getHeightSize

Function getHeightSize

cli/src/hooks/use-terminal-layout.ts:136–144  ·  view source on GitHub ↗
(terminalHeight: number)

Source from the content-addressed store, hash-verified

134 * Determine the height layout size from terminal height.
135 */
136const getHeightSize = (terminalHeight: number): TerminalHeightSize => {
137 if (terminalHeight < HEIGHT_XS_BREAKPOINT) {
138 return 'xs'
139 } else if (terminalHeight > HEIGHT_MD_BREAKPOINT) {
140 return 'md'
141 } else {
142 return 'sm'
143 }
144}
145
146/**
147 * Pure function to compute terminal layout from dimensions.

Callers 1

computeTerminalLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected