Files
element-call-Github/src
Timo K.andClaude Fable 5.1 779ee7a008 Finish measuring the root rather than the viewport
The move from media queries to `@container element-call` queries left a
few places still asking the viewport: the room header's compact size
and the lobby's footer placement went through `useMediaQuery`, the
lobby's video preview was `50vh` tall, the reaction picker was capped at
`100vw`, and the content insets and the gradient background were sized
from `100vw`/`100vh`. Embedded in a corner of a host's page, each of
those answered for the page rather than the corner.

`useRootSizeMatches` is `useMediaQuery` for the root element, built on
the same `observeElementSize$` the layout uses; the lengths become
container units. Container units resolve against the nearest query
container, and there are others in the tree (the spotlight layouts, the
media tiles), so base.css says when they may be used.

jsdom gives the body no size at all, which would have every such query
read as a tiny window; the test setup now gives it a desktop's, matching
what the media query mock already answered.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-08 15:38:59 +02:00
..
2026-03-30 18:26:38 +02:00
2026-09-03 11:47:35 +02:00
2026-09-03 11:47:35 +02:00
2025-06-23 23:06:33 -04:00
2026-03-30 18:26:38 +02:00
2025-03-13 18:00:24 -04:00
2025-09-16 11:46:25 +02:00
2026-06-22 11:59:16 +02:00
2026-09-03 11:47:35 +02:00
2025-03-13 17:51:41 -04:00
2025-03-13 17:51:41 -04:00
2026-04-03 17:48:42 +02:00
2025-02-24 18:18:15 +07:00
2025-06-24 08:28:15 -04:00
2025-03-13 17:51:41 -04:00
2025-03-13 17:51:41 -04:00