diff options
| author | Fuwn <[email protected]> | 2026-02-07 03:49:32 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-07 03:49:32 -0800 |
| commit | 0b1556189af98e898f2650ebe14882451cbb2309 (patch) | |
| tree | c46005723a0beaa9db050355ca789d0dbe79d38a /apps/web/lib/api-auth.ts | |
| parent | feat: derive sidebar min/default width from measured content (diff) | |
| download | asa.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-auth.ts')
0 files changed, 0 insertions, 0 deletions