Skip to content

Commit

Permalink
Editing Favorites Mobile CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
0MeMo07 committed Feb 14, 2024
1 parent 083157b commit c812dc9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/Favorites.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ export default function Favorites({ product, total, money, basket, setBasket, va
<div className="d-flex flex-row">
<img className="rounded" src={product.thumbnail} width="40" alt={`${index}`} />
<div className="ml-2">
<span className="font-weight-bold d-block">{product.title}</span>
<span className="font-weight-bold d-block" id="Title">{product.title}</span>
<span className="spec">{product.description}</span>
</div>
</div>
<div className="d-flex flex-row align-items-center">
<span className="d-block ml-5 font-weight-bold">${product.price}</span>
<div className="d-flex flex-row align-items-center" id="Price">
<span className="d-block ml-3 font-weight-bold">${product.price}</span>
<Button className="d-block ml-3 font-weight-bold" onClick={() => toggleProduct(product.id)}><Link to="/cart" className='FavİconLinks'>Go To Cart </Link></Button>
<i className="fa fa-trash-o ml-3 text-black-50" id="Trash" onClick={() => DeleteFavorite(product.id)}></i>
</div>
Expand Down
22 changes: 21 additions & 1 deletion src/css/Favorites.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#Trash:hover{
cursor: pointer;
}
}
.items img {
width: 50px;
height: 50px;
border-radius: 5px;
margin-right: 10px;
}
@media (max-width: 850px) {

.items img {
width: 50px;
height: 50px;
border-radius: 5px;
margin-right: 10px;
}

.spec {
display: none;
}
}

0 comments on commit c812dc9

Please sign in to comment.