pf_app
Fit worked on the values and not on the headings. Auto-fit measures cells with getBoundingClientRect() and sets each column's min-width from the result, but the datagrid's CSS wraps and clips header text — so a clipped th measures at the width it was *allotted*, not the width of its content, and a column can never grow to fit its own heading. Row labels are th elements in tbody and clip for the same reason. white-space: nowrap on those cells, and nothing else: no width, no overflow. The measurement then sees the full text and the existing sizing logic does the rest. Folded into the stylesheet already being injected for the grand-total column, and renamed from pf-hide-split-total to pf-grid-css now that it does more than the one thing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| lib | ||
| public | ||
| routes | ||
| setup_sql | ||
| ui | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| install.sh | ||
| package-lock.json | ||
| package.json | ||
| PERSPECTIVE.md | ||
| pf_perspective_options.md | ||
| pf_spec.md | ||
| pf.sh | ||
| server.js | ||