mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 14:18:21 +03:00
availableWidth starts at 0 (not null/undefined) before ResizeObserver fires. The ?? operator passes 0 through instead of falling back to window.innerWidth, making cellHeight negative and causing react-grid-layout to render a ~10px container. The overflow-x-hidden div then becomes an implicit scroll container, producing the 'cards squeezed in a small rectangle' symptom. Changing ?? to || makes 0 trigger the window.innerWidth fallback, giving a reasonable initial rowHeight until the real container width is measured. https://claude.ai/code/session_01H1sqbcFmtwwsdNTJcJHJWd |
||
|---|---|---|
| .. | ||
| button | ||
| classification | ||
| events | ||
| explore | ||
| live | ||
| motion-search | ||
| recording | ||
| search | ||
| settings | ||
| system | ||