Make screenshares appear near the presenter's tile and be larger

This commit is contained in:
Robin Townsend
2023-06-18 00:47:37 -04:00
parent 3e56d0a656
commit 391ba5196c
5 changed files with 166 additions and 51 deletions

View File

@@ -43,7 +43,7 @@ import {
fillGaps,
forEachCellInArea,
cycleTileSize,
appendItems,
addItems,
tryMoveTile,
resize,
} from "./model";
@@ -94,7 +94,7 @@ const useGridState = (
grid2.cells.filter((c) => c !== undefined).map((c) => c!.item.id)
);
const newItems = items.filter((i) => !existingItemIds.has(i.id));
const grid3 = appendItems(newItems, grid2);
const grid3 = addItems(newItems, grid2);
return { ...grid3, generation: prevGrid.generation + 1 };
},