MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getEffectiveWidth

Function getEffectiveWidth

src/utils/horizontalScroll.ts:71–76  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

69
70 // Calculate effective available width based on whether we'll show arrows
71 function getEffectiveWidth(start: number, end: number): number {
72 let width = availableWidth
73 if (start > 0) width -= arrowWidth // left arrow
74 if (end < totalItems) width -= arrowWidth // right arrow
75 return width
76 }
77
78 // Edge-based scrolling: Start from the beginning and only scroll when necessary
79 // First, calculate how many items fit starting from index 0

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected