diff --git a/src/addons/mod/label/services/handlers/prefetch.ts b/src/addons/mod/label/services/handlers/prefetch.ts index c9f35f8fa..50feb8c62 100644 --- a/src/addons/mod/label/services/handlers/prefetch.ts +++ b/src/addons/mod/label/services/handlers/prefetch.ts @@ -63,5 +63,13 @@ export class AddonModLabelPrefetchHandlerService extends CoreCourseResourcePrefe await CoreUtils.allPromises(promises); } + /** + * @inheritdoc + */ + async loadContents(module: CoreCourseAnyModuleData): Promise { + // Labels don't have contents. + module.contents = []; + } + } export const AddonModLabelPrefetchHandler = makeSingleton(AddonModLabelPrefetchHandlerService); diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.html b/src/addons/storagemanager/pages/course-storage/course-storage.html index 4f1b55179..3b15683d5 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.html +++ b/src/addons/storagemanager/pages/course-storage/course-storage.html @@ -71,14 +71,15 @@ - +

- {{ module.name }} + +

{{ module.totalSize | coreBytesToSize }} diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.scss b/src/addons/storagemanager/pages/course-storage/course-storage.scss index 5e459df34..29bc1c7d8 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.scss +++ b/src/addons/storagemanager/pages/course-storage/course-storage.scss @@ -1,4 +1,9 @@ +@import "~theme/globals"; + :host { + --core-format-text-background-gradient-rgb: var(--background-rgb, #{$ion-item-background-rgb}); + --course-storage-max-activity-height: 120px; + ion-card.section ion-card-header { margin-bottom: 8px; padding-top: 8px; @@ -8,6 +13,22 @@ font-weight: bold; font-size: 1.2rem; } + + .core-course-storage-activity ion-label { + max-height: var(--course-storage-max-activity-height); + + &:before { + content: ''; + height: 100%; + min-height: var(--course-storage-max-activity-height); + position: absolute; + @include position(0, 0, null, 0); + background: -webkit-linear-gradient(top, rgba(var(--core-format-text-background-gradient-rgb), 0) calc(100% - 30px), rgba(var(--core-format-text-background-gradient-rgb), 1) calc(100% - 20px)); + background: linear-gradient(to bottom, rgba(var(--core-format-text-background-gradient-rgb), 0) calc(100% - 30px), rgba(var(--core-format-text-background-gradient-rgb), 1) calc(100% - 20px)); + z-index: 6; + pointer-events: none; + } + } } .storage-buttons {