(key: string, width: number)
| 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) => { |