Skip to content

Commit

Permalink
fix: Fixed Cart layout on desktop and mobile version
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanja85 committed Nov 25, 2023
1 parent 8ffe88d commit 8077122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/CartItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const CartItem = ({ item }: Props) => {
{item.currentPrice}
<sup className="pl-2">RSD</sup>
</p>
<p className="text-base leading-[18px] text-orange-600 line-through pt-2">
{item.oldPrice}
<sup className="pl-2">RSD</sup>
<p className="text-base leading-[18px] text-orange-600 pt-2">
<span className="line-through">{item.oldPrice}</span>
<sup className="pl-2 ">RSD</sup>
</p>
</div>
</article>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Cart() {
<CartItem key={cartItem.id} item={cartItem} />
))}
</div>
<div className="w-full p-4 mt-5 space-y-3 max-h-96 bg-ligthGray md:w-1/ md:mt-0">
<div className="w-full p-4 mt-5 space-y-3 max-h-96 bg-ligthGray md:w-1/ md:mt-0 md:ml-8 md:max-w-[300px] lg:max-w-[400px]">
<h3 className="text-base font-bold">Tvoja narudžbina</h3>
<div className="flex flex-col w-full space-y-3">
<div className="flex flex-row justify-between">
Expand Down

0 comments on commit 8077122

Please sign in to comment.