{#if assets.length > 0}
{#if viewWidth} {@const geoArray = assets.map(getAssetRatio)} {@const justifiedLayoutResult = justifiedLayout(geoArray, { targetRowHeight: 235, containerWidth: Math.floor(viewWidth) })} {#each assets as asset, index (asset.id)}
(isMultiSelectionMode ? selectAssetHandler(e) : viewAssetHandler(e))} on:select={selectAssetHandler} selected={selectedAssets.has(asset)} />
{/each} {/if}
{/if} {#if isShowAssetViewer} {/if}