Skip to content

Commit 0fbcb85

Browse files
committed
refactor: rename course thumbnail class for consistency in progress card component
1 parent 2b44771 commit 0fbcb85

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

assets/src/scss/frontend/dashboard/_progress-card.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
background-color: $tutor-surface-l1-hover;
2020
}
2121

22-
.tutor-courses-thumb {
22+
.tutor-progress-card-thumbnail {
2323
position: relative;
2424
flex: 0 0 200px;
2525
aspect-ratio: 16 / 9;
@@ -133,11 +133,10 @@
133133
background-color: transparent;
134134
}
135135

136-
.tutor-courses-thumb {
136+
.tutor-progress-card-thumbnail {
137137
width: 100%;
138138
max-width: 100%;
139139
margin-bottom: $tutor-spacing-4;
140-
aspect-ratio: 16 / 9;
141140
}
142141

143142
&-kebab-overlay {

templates/dashboard/courses/course-card.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@
2525
<a href="<?php echo esc_url( $course_permalink ); ?>">
2626
<div class="tutor-card tutor-progress-card">
2727

28-
<div class="tutor-courses-thumb tutor-position-relative">
28+
<div class="tutor-progress-card-thumbnail">
2929
<?php if ( ! empty( $tutor_course_img ) ) : ?>
30-
<div class="tutor-progress-card-thumbnail">
31-
<img src="<?php echo esc_url( $tutor_course_img ); ?>" alt="<?php the_title(); ?>" />
32-
</div>
30+
<img src="<?php echo esc_url( $tutor_course_img ); ?>" alt="<?php the_title(); ?>" />
3331
<?php endif; ?>
3432
</div>
3533

36-
3734
<div class="tutor-progress-card-content">
3835

3936
<!-- course header -->
@@ -88,7 +85,7 @@
8885
<?php endif; ?>
8986
</div>
9087
<?php endif; ?>
91-
88+
9289
</div>
9390
</div>
9491
</a>

0 commit comments

Comments
 (0)