MCPcopy Index your code
hub / github.com/anomalyco/opencode / contentWidth

Function contentWidth

packages/tui/src/component/error-component.tsx:95–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94 // Responsive thresholds.
95 const contentWidth = () => Math.min(84, Math.max(24, term().width - 4))
96 const showSubtext = () => term().height >= 18
97 const showFooter = () => term().height >= 20
98

Callers 3

ErrorComponentFunction · 0.70
widthFunction · 0.50
WhichKeyPanelFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected