Skip to content

Commit de7b8d2

Browse files
author
Rajat
committed
Fixed overflowing customer progress dialog
1 parent 21be78e commit de7b8d2

File tree

1 file changed

+5
-10
lines changed
  • apps/web/app/(with-contexts)/dashboard/(sidebar)/product/[id]/customers

1 file changed

+5
-10
lines changed

apps/web/app/(with-contexts)/dashboard/(sidebar)/product/[id]/customers/page.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -446,27 +446,22 @@ export default function CustomersPage() {
446446
Progress
447447
</DialogTitle>
448448
</DialogHeader>
449-
<DialogDescription>
450-
{/* {product?.lessons?.map((lesson: any) => (
451-
<div key={lesson.lessonId}>
452-
<h3>{lesson.title}</h3>
453-
</div>
454-
))} */}
449+
<DialogDescription className="max-h-[400px] overflow-y-scroll">
455450
{product?.lessons?.map(
456451
(
457452
lesson: any,
458453
) => (
459-
<div
454+
<span
460455
key={
461456
lesson.lessonId
462457
}
463458
className="flex justify-between items-center mb-1"
464459
>
465-
<p>
460+
<span>
466461
{
467462
lesson.title
468463
}
469-
</p>
464+
</span>
470465
<span>
471466
{member.completedLessons?.includes(
472467
lesson.lessonId,
@@ -476,7 +471,7 @@ export default function CustomersPage() {
476471
<Circle />
477472
)}
478473
</span>
479-
</div>
474+
</span>
480475
),
481476
)}
482477
</DialogDescription>

0 commit comments

Comments
 (0)