MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / loadWidth

Function loadWidth

graph-ui/src/components/GraphTab.tsx:32–38  ·  view source on GitHub ↗
(key: string, fallback: number)

Source from the content-addressed store, hash-verified

30
31/* Persist panel widths */
32function loadWidth(key: string, fallback: number): number {
33 try {
34 const v = localStorage.getItem(key);
35 if (v) return Math.max(150, Math.min(600, parseInt(v, 10)));
36 } catch { /* ignore */ }
37 return fallback;
38}
39function saveWidth(key: string, value: number) {
40 try { localStorage.setItem(key, String(Math.round(value))); } catch { /* ignore */ }
41}

Callers 1

GraphTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected