diff options
| author | Fuwn <[email protected]> | 2026-02-07 03:51:26 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-07 03:51:26 -0800 |
| commit | fa0a6387dfb4a3ddc2dc8b37a53e1562432298a0 (patch) | |
| tree | 54b57f4e541c9e1a7ec2962c28235847c3b87201 /apps/web/lib/api-auth.ts | |
| parent | fix: measure sidebar min width from children intrinsic widths (diff) | |
| download | asa.news-fa0a6387dfb4a3ddc2dc8b37a53e1562432298a0.tar.xz asa.news-fa0a6387dfb4a3ddc2dc8b37a53e1562432298a0.zip | |
fix: use Canvas text measurement for sidebar min width
getBoundingClientRect on wrapped text returns the narrow wrapped
width, not the single-line width. Canvas measureText is layout-
independent and gives the true single-line intrinsic text width.
Diffstat (limited to 'apps/web/lib/api-auth.ts')
0 files changed, 0 insertions, 0 deletions