Skip to content

Commit

Permalink
Merge branch 'hina/indigo-fixes' into tanveer/indigo
Browse files Browse the repository at this point in the history
  • Loading branch information
hinakhadim committed Jan 24, 2024
2 parents b7d64a6 + a8c0a79 commit 524d404
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@
background: #fff;
.course-image {
.cover-image {
height: auto;
height: 162px;
&:before {
display: none;
}
img{
object-fit: cover;
object-position: center;
height: 100%;
}
}
}
.course-info {
Expand Down
2 changes: 1 addition & 1 deletion tutorindigo/templates/indigo/lms/templates/course.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<article class="course" id="${course.id}" role="region" aria-label="${course.display_name_with_default}">
<header class="course-image">
<div class="cover-image">
<img src="${course.course_image_url}" alt="${course.display_name_with_default} ${course.display_number_with_default}" />
<img src="${course.course_image_url}" onerror="this.src='/static/indigo/images/no_course_image.png';" alt="${course.display_name_with_default} ${course.display_number_with_default}" />
</div>
</header>
<div class="course-info" aria-hidden="true">
Expand Down

0 comments on commit 524d404

Please sign in to comment.