Skip to content

Commit 0bde7f1

Browse files
committed
fix: update LearningPathDetailPage to use course image and enhance card logo styling
1 parent 9c5195c commit 0bde7f1

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/learningpath/LearningPathDetails.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ const LearningPathDetailPage = () => {
182182
} else {
183183
const {
184184
name,
185-
partner: { logo: partnerLogo },
185+
image,
186186
availableEndDate,
187-
userLimit,
187+
userLimit,
188188
} = detail;
189189

190190
const detailSection = (
@@ -206,7 +206,7 @@ const LearningPathDetailPage = () => {
206206
className="w-100"
207207
>
208208
<Card.ImageCap
209-
src={partnerLogo}
209+
src={image}
210210
srcAlt={`${name} catalog image`}
211211
logoSrc={orgData?.logo}
212212
logoAlt={`${orgData?.name} logo`}

src/learningpath/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@
716716

717717
.pgn__card-logo-cap {
718718
padding: 0 !important;
719+
object-fit: cover !important;
719720
}
720721

721722
.dashboard {

0 commit comments

Comments
 (0)