MCPcopy
hub / github.com/codeaashu/claude-code / getIdealWidth

Function getIdealWidth

src/components/MarkdownTable.tsx:102–104  ·  view source on GitHub ↗
(tokens_2: Token[] | undefined)

Source from the content-addressed store, hash-verified

100
101 // Get ideal width (full content without wrapping)
102 function getIdealWidth(tokens_2: Token[] | undefined): number {
103 return Math.max(stringWidth(getPlainText(tokens_2)), MIN_COLUMN_WIDTH);
104 }
105
106 // Calculate column widths
107 // Step 1: Get minimum (longest word) and ideal (full content) widths

Callers 1

MarkdownTableFunction · 0.85

Calls 2

getPlainTextFunction · 0.85
maxMethod · 0.80

Tested by

no test coverage detected