Skip to content

Commit 1a982e0

Browse files
committed
add min height for productmoverategraph to prevent layout shift
1 parent d367389 commit 1a982e0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/routes/(info)/lttstore/products/[handle]/+page.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,11 @@
645645
<option value="all">all-time</option>
646646
</select>{#key data}
647647
<ProductStockHistoryGraph stockHistory={data.stockHistory} productName={productInfo.title} productOptions={productInfo.options} {chartUpdateNumber}/>
648-
<LazyLoad>
649-
<ProductMoveRateGraph stockHistory={data.stockHistory} productName={productInfo.title} {chartUpdateNumber}/>
650-
</LazyLoad>
648+
<div class="min-h-[710px]">
649+
<LazyLoad>
650+
<ProductMoveRateGraph stockHistory={data.stockHistory} productName={productInfo.title} {chartUpdateNumber}/>
651+
</LazyLoad>
652+
</div>
651653
{/key}<br>
652654
{#if data.product.firstSeen < 1719248750000}
653655
Note that stock started being recorded on June 11th, 2024, so data before that is not available.

0 commit comments

Comments
 (0)