Enable the PiP tile in expanded spotlight layout to swap speakers without a layout shift

This was apparently left unimplemented during the first iteration of the TileStore. It's a welcome UI optimization and we can reliably test for it.
This commit is contained in:
Robin
2025-10-17 11:27:51 -04:00
parent 414322e5d9
commit 340265a838
3 changed files with 107 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ export function spotlightExpandedLayout(
): [SpotlightExpandedLayout, TileStore] {
const update = prevTiles.from(1);
update.registerSpotlight(media.spotlight, true);
if (media.pip !== undefined) update.registerGridTile(media.pip);
if (media.pip !== undefined) update.registerPipTile(media.pip);
const tiles = update.build();
return [