summaryrefslogtreecommitdiff
path: root/apps/web/lib/api-auth.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-07 03:51:26 -0800
committerFuwn <[email protected]>2026-02-07 03:51:26 -0800
commitfa0a6387dfb4a3ddc2dc8b37a53e1562432298a0 (patch)
tree54b57f4e541c9e1a7ec2962c28235847c3b87201 /apps/web/lib/api-auth.ts
parentfix: measure sidebar min width from children intrinsic widths (diff)
downloadasa.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