Skip to content

Commit

Permalink
fix: detalle del cart
Browse files Browse the repository at this point in the history
  • Loading branch information
Moya30 committed Dec 19, 2024
1 parent 4061ffa commit 4a04daf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
width: 100%;
max-width: 550px;
height: 100%;
min-height: 505px;
max-height: 505px;
min-height: 550px;
max-height: 550px;
border-radius: 8px;
display: flex;
flex-direction: column;
Expand Down
8 changes: 4 additions & 4 deletions client/src/features/courses/components/CourseCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const CourseCard = ({
{categoria}
</span>

<div className="grow p-4">
<div className="grow px-4 pt-4">
<div className="flex items-center justify-between">
<h3 className="line-clamp-2 max-h-14 min-h-14 text-ellipsis text-lg font-bold text-slate-200">
{title}
Expand Down Expand Up @@ -153,15 +153,15 @@ const CourseCard = ({
) : null}
</div>
{price ? (
<div className="mt-4 flex items-center gap-2">
<div className="mt-4 flex items-center">
<strong className="text-lg font-bold text-slate-200">${price}</strong>
</div>
) : null}
</div>

<div className="mt-auto flex items-center p-4">
<div className="mt-2 flex items-center p-3">
<Button
className="relative z-10 rounded-lg px-4 py-2 text-sm text-white"
className="relative z-10 rounded-lg px-4 text-sm text-white"
onClick={() => {
saveToCart({
courseId,
Expand Down

0 comments on commit 4a04daf

Please sign in to comment.