diff --git a/src/index.css b/src/index.css index d58eaf7..cb93e4a 100644 --- a/src/index.css +++ b/src/index.css @@ -388,4 +388,8 @@ All colors MUST be HSL. @apply bg-slate-100 text-slate-800 px-1 py-0.5 rounded text-xs font-mono; border: 1px solid rgba(0, 0, 0, 0.1); } + + .flex .flex-1 code { + background-color: #dedede; + } } \ No newline at end of file diff --git a/src/pages/ProductDetail.tsx b/src/pages/ProductDetail.tsx index 1d3d7ae..a245384 100644 --- a/src/pages/ProductDetail.tsx +++ b/src/pages/ProductDetail.tsx @@ -227,6 +227,11 @@ export default function ProductDetail() { return `${mins}:${String(secs).padStart(2, '0')}`; }; + const isLastTimelineItem = (length: number, chapterIndex: number)=> { + const calcLength = length - 1; + return calcLength !== chapterIndex; + } + const renderWebinarChapters = () => { if (product?.type !== 'webinar' || !product.chapters || product.chapters.length === 0) return null; @@ -238,7 +243,7 @@ export default function ProductDetail() { {product.chapters.map((chapter, index) => (
@@ -420,13 +425,13 @@ export default function ProductDetail() { {lesson.chapters.map((chapter, chapterIndex) => (
{formatChapterTime(chapter.time)} - {chapter.title} +
))}