mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-18 22:14:21 +01:00
problem: products are not stacked vertically
This commit is contained in:
@@ -54,11 +54,11 @@
|
||||
|
||||
{#if $$slots.default}
|
||||
<Card.Content>
|
||||
<div class="flex flex-col items-center justify-center gap-2 sm:flex-row">
|
||||
<div class="flex flex-col items-center justify-center gap-2 md:flex-row">
|
||||
<img
|
||||
src={product.getMatchingTags('cover')[0][1]}
|
||||
alt="cover"
|
||||
class="aspect-square w-[200px] object-cover"
|
||||
class="aspect-square w-[300px] object-cover"
|
||||
/>
|
||||
<slot />
|
||||
</div>
|
||||
@@ -70,7 +70,7 @@
|
||||
class="aspect-square object-cover"
|
||||
/>
|
||||
{/if}
|
||||
<Card.Footer class="flex justify-between pt-2">
|
||||
<Card.Footer class="flex justify-center pt-2">
|
||||
{#if !includedInRocket()}
|
||||
<AddProductToRocket {product} {rocket} />
|
||||
{:else}
|
||||
|
||||
@@ -26,10 +26,7 @@
|
||||
<Card.Title>Products and Purchases</Card.Title>
|
||||
<Card.Description></Card.Description>
|
||||
</Card.Header>
|
||||
<Card.Content
|
||||
class="grid gap-2"
|
||||
style="grid-template-columns: repeat(auto-fit, minmax(min(100% - 2rem, 400px), 1fr));"
|
||||
>
|
||||
<Card.Content class="grid grid-cols-1 gap-2">
|
||||
{#each $products as product}
|
||||
<div>
|
||||
<ProductCardFromId {rocket} productID={product.ID}>
|
||||
|
||||
Reference in New Issue
Block a user