Skip to content

Commit ce6bddf

Browse files
committed
MOBILE-4842 course: Fix course image width on summary
1 parent 4306f3b commit ce6bddf

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

src/core/components/course-image/course-image.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,12 @@
112112
z-index: -1;
113113
width: 100%;
114114

115-
ion-avatar img {
115+
ion-avatar {
116116
width: 100%;
117-
height: 100%;
118-
object-fit: cover;
117+
height: auto;
118+
img {
119+
object-fit: cover;
120+
}
119121
}
120122
ion-icon.course-icon-fallback {
121123
--padding: 24px;

src/core/features/course/pages/course-summary/course-summary.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
core-course-image {
11-
--core-image-size: auto;
11+
--core-image-size: var(--thumb-height);
1212
}
1313

1414
.course-container {

src/theme/components/ion-header.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ion-header.header-md {
66
transition: box-shadow 0.5s;
77

88
ion-toolbar {
9+
--min-height: var(--core-header-toolbar-height);
910
--color: var(--core-header-toolbar-color);
1011
--background: var(--core-header-toolbar-background);
1112
--border-width: 0 0 var(--core-header-toolbar-border-width) 0;
@@ -128,3 +129,7 @@ ion-header.header-md {
128129
--core-header-buttons-background: var(--background, var(--background-color));
129130
}
130131
}
132+
133+
ion-tabs.hide-header ion-header {
134+
display: none;
135+
}

src/theme/theme.base.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@ a {
117117
}
118118
}
119119

120-
// Ionic toolbar on header.
121-
ion-toolbar {
122-
--min-height: var(--core-header-toolbar-height);
123-
}
124-
125-
ion-tabs.hide-header ion-header {
126-
display: none;
127-
}
128-
129120
// Ionic list.
130121
ion-list {
131122
padding: 0 !important;

0 commit comments

Comments
 (0)