= 2} class:today-card-row__stretch-first-nowrap={shouldStretchFirstCardNoWrap && shelf.items.length >= 2} class:today-card-row__stretch-last-wrap={!shouldStretchFirstCardWrap && shelf.items.length >= 2} class:today-card-row__stretch-last-nowrap={!shouldStretchFirstCardNoWrap && shelf.items.length >= 2} class:today-card-row__1-card={shelf.items.length == 1} class:today-card-row__2-card={shelf.items.length == 2} class:today-card-row__3-card={shelf.items.length == 3} class:today-card-row__4-card={shelf.items.length >= 4} > {#each shelf.items.slice(0, 4) as card}
{/each}