PR-C1: adaptive video grid sizing (foundation) #2

Closed
hudson wants to merge 18 commits from flotilla-sph-adaptive-grid into dev
Showing only changes of commit 8bcc3ac918 - Show all commits

View file

@ -295,10 +295,12 @@
class="min-h-0 flex-1 overflow-y-auto">
{#if tileGrid}
<div
class="mx-auto grid content-start gap-2"
style={`grid-template-columns: repeat(${tileGrid.cols}, ${tileGrid.tileWidth}px); grid-template-rows: repeat(${tileGrid.rows}, ${tileGrid.tileHeight}px)`}>
class="flex flex-wrap justify-center gap-2"
style={`max-width: ${tileGrid.cols * tileGrid.tileWidth + (tileGrid.cols - 1) * 8}px`}>
{#each videoTiles as tile (tileKey(tile))}
<div class="overflow-hidden rounded-2xl">
<div
class="overflow-hidden rounded-2xl shrink-0"
style={`width: ${tileGrid.tileWidth}px; height: ${tileGrid.tileHeight}px`}>
{@render videoTile(tile, "default")}
</div>
{/each}