From 60a88b1fe0b5a669954480953c300c0d57aee945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 30 Jun 2023 16:13:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E8=AF=A6=E6=83=85=E3=80=81?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/index.module.scss | 6 ++++-- src/pages/course/index.tsx | 2 +- src/pages/course/video.module.scss | 7 +++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pages/course/index.module.scss b/src/pages/course/index.module.scss index 0784bbb..99408f9 100644 --- a/src/pages/course/index.module.scss +++ b/src/pages/course/index.module.scss @@ -106,9 +106,9 @@ width: 100%; height: auto; margin-top: 20px; - .chapter-name { width: 100%; + float: left; height: 15px; font-size: 15px; font-weight: 500; @@ -118,12 +118,14 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + margin-bottom: 5px; } } .hours-it { width: 100%; + float: left; height: auto; - margin-top: 20px; + margin-top: 10px; } } } diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx index a1a1fbe..906bb09 100644 --- a/src/pages/course/index.tsx +++ b/src/pages/course/index.tsx @@ -131,7 +131,7 @@ const CoursePage = () => {
{chapters.length === 0 && JSON.stringify(hours) === "{}" && }{" "} {chapters.length === 0 && JSON.stringify(hours) !== "{}" && ( -
+
{hours[0].map((item: any, index: number) => (
{learnHourRecord[item.id] && ( diff --git a/src/pages/course/video.module.scss b/src/pages/course/video.module.scss index c4f0190..6688927 100644 --- a/src/pages/course/video.module.scss +++ b/src/pages/course/video.module.scss @@ -57,6 +57,7 @@ .chapters-hours-cont { width: 100%; + float: left; height: auto; box-sizing: border-box; background-color: #ffffff; @@ -70,9 +71,9 @@ width: 100%; height: auto; margin-top: 20px; - .chapter-name { width: 100%; + float: left; height: 15px; font-size: 15px; font-weight: 500; @@ -82,12 +83,14 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + margin-bottom: 5px; } } .hours-it { width: 100%; + float: left; height: auto; - margin-top: 20px; + margin-top: 10px; } } }