Skip to content

Commit

Permalink
Update product card component
Browse files Browse the repository at this point in the history
  • Loading branch information
rayc2045 committed Jun 2, 2024
1 parent 79e9f8f commit 7c1cef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/product-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
/>
</a>

<div class="flex justify-between items-start">
<div>
<div class="flex justify-between items-start relative">
<div class="pr-11">
<small
id="product-label"
x-text="product.stock === 'in stock'
Expand All @@ -42,7 +42,7 @@
<button
id="add-to-cart-button"
x-html="svg('bag')"
class="mt-4 ml-1"
class="absolute right-0 top-4"
:class="btn.roundedGray"
@click="await cart.addItem({
name: product.name,
Expand Down

0 comments on commit 7c1cef4

Please sign in to comment.