MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / setWidthByKey

Function setWidthByKey

src/pages/options/routes/ScriptList/ScriptTable.tsx:671–675  ·  view source on GitHub ↗
(key: string, width: number)

Source from the content-addressed store, hash-verified

669
670 // 4. Optimized setWidth using the Column Key
671 const setWidthByKey = (key: string, width: number) => {
672 setManualWidths((prev) => {
673 return prev[key] === width ? prev : { ...prev, [key]: width };
674 });
675 };
676 // 2. Load initial widths once
677 useEffect(() => {
678 systemConfig.getScriptListColumnWidth().then((saved) => {

Callers 1

ScriptTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected