diff --git a/src/core/course/components/format/core-course-format.html b/src/core/course/components/format/core-course-format.html index a7c21a84c..3377c9150 100644 --- a/src/core/course/components/format/core-course-format.html +++ b/src/core/course/components/format/core-course-format.html @@ -23,8 +23,11 @@ - - + +
+ +
+
diff --git a/src/core/course/components/format/format.scss b/src/core/course/components/format/format.scss index 3639d394c..2533ecdba 100644 --- a/src/core/course/components/format/format.scss +++ b/src/core/course/components/format/format.scss @@ -34,6 +34,7 @@ ion-app.app-root core-course-format { } .core-course-thumb { + display: none; height: 150px; width: 100%; overflow: hidden; diff --git a/src/core/course/pages/section/section.ts b/src/core/course/pages/section/section.ts index a246213b6..4a8bcf145 100644 --- a/src/core/course/pages/section/section.ts +++ b/src/core/course/pages/section/section.ts @@ -265,6 +265,11 @@ export class CoreCourseSectionPage implements OnDestroy { }); })); + // Get the overview files. + if (this.course.overviewfiles) { + this.course.imageThumb = this.course.overviewfiles[0] && this.course.overviewfiles[0].fileurl; + } + // Load the course handlers. promises.push(this.courseOptionsDelegate.getHandlersToDisplay(this.injector, this.course, refresh, false) .then((handlers) => {