MCPcopy Create free account
hub / github.com/codeaashu/claude-code / spriteColWidth

Function spriteColWidth

src/buddy/CompanionSprite.tsx:158–160  ·  view source on GitHub ↗
(nameWidth: number)

Source from the content-addressed store, hash-verified

156const BUBBLE_WIDTH = 36; // SpeechBubble box (34) + tail column
157const NARROW_QUIP_CAP = 24;
158function spriteColWidth(nameWidth: number): number {
159 return Math.max(SPRITE_BODY_WIDTH, nameWidth + NAME_ROW_PAD);
160}
161
162// Width the sprite area consumes. PromptInput subtracts this so text wraps
163// correctly. In fullscreen the bubble floats over scrollback (no extra

Callers 2

companionReservedColumnsFunction · 0.85
CompanionSpriteFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected