From 2634d044cbcbb8c3a9b65226354c28027ae31648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 8 Jun 2023 14:52:31 +0200 Subject: [PATCH 1/3] MOBILE-3973 course: Support svg geopatterns in the app --- .../pages/course-summary/course-summary.html | 4 ++-- .../pages/course-summary/course-summary.scss | 5 +++++ .../features/course/pages/index/index.html | 8 ++++---- .../features/course/pages/index/index.scss | 5 +++++ ...-course-in-app-view-course-contents_46.png | Bin 36565 -> 38255 bytes .../core-courses-course-list-item.html | 12 ++++++------ .../course-list-item/course-list-item.scss | 4 ++++ .../core-courses-course-progress.html | 4 ++-- .../course-progress/course-progress.scss | 5 +++++ .../courses/services/courses-helper.ts | 17 +++++++++++++++-- 10 files changed, 48 insertions(+), 16 deletions(-) diff --git a/src/core/features/course/pages/course-summary/course-summary.html b/src/core/features/course/pages/course-summary/course-summary.html index 1cfd954c2..8816e13c9 100644 --- a/src/core/features/course/pages/course-summary/course-summary.html +++ b/src/core/features/course/pages/course-summary/course-summary.html @@ -18,8 +18,8 @@
- -
diff --git a/src/core/features/course/pages/course-summary/course-summary.scss b/src/core/features/course/pages/course-summary/course-summary.scss index 17f6c76af..f0b9ff3c2 100644 --- a/src/core/features/course/pages/course-summary/course-summary.scss +++ b/src/core/features/course/pages/course-summary/course-summary.scss @@ -27,6 +27,11 @@ width: 100%; height: 100%; object-fit: cover; + + // Fill geopaterns + &[src$=".svg"] { + min-width: 100%; + } } ion-icon.course-icon { diff --git a/src/core/features/course/pages/index/index.html b/src/core/features/course/pages/index/index.html index 0f0a6ca1d..f8c3a01f3 100644 --- a/src/core/features/course/pages/index/index.html +++ b/src/core/features/course/pages/index/index.html @@ -21,12 +21,12 @@
-
-