summaryrefslogtreecommitdiff
path: root/apps/web/lib/api-key.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-07 03:49:32 -0800
committerFuwn <[email protected]>2026-02-07 03:49:32 -0800
commit0b1556189af98e898f2650ebe14882451cbb2309 (patch)
treec46005723a0beaa9db050355ca789d0dbe79d38a /apps/web/lib/api-key.ts
parentfeat: derive sidebar min/default width from measured content (diff)
downloadasa.news-0b1556189af98e898f2650ebe14882451cbb2309.tar.xz
asa.news-0b1556189af98e898f2650ebe14882451cbb2309.zip
fix: measure sidebar min width from children intrinsic widths
scrollWidth on a block flex element returns parent width, not content width. Now sums getBoundingClientRect().width of each child element (text span + unread badge) for a screen-independent measurement.
Diffstat (limited to 'apps/web/lib/api-key.ts')
0 files changed, 0 insertions, 0 deletions