Skip to content

Commit

Permalink
Merge pull request #88 from GeotrekCE/bpo-style_improvements
Browse files Browse the repository at this point in the history
fix: improve card image style
  • Loading branch information
bastyen authored Mar 6, 2024
2 parents f4629b2 + e08c9c4 commit a21c4e7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@
.touristic-content-img {
width: 250px;
height: 100%;
border-bottom-left-radius: var(--border-radius, 12px);
border-top-right-radius: var(--border-radius, 0px);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,13 @@ export class GrwTouristicContentCard {
loading="lazy"
/>
) : (
<div></div>
<img
/* @ts-ignore */
crossorigin="anonymous"
class="image default-touristic-content-img"
src={defaultImageSrc}
loading="lazy"
/>
)}
</div>
<div part="touristic-content-sub-container" class="touristic-content-sub-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@
.touristic-event-img {
width: 250px;
height: 100%;
border-bottom-left-radius: var(--border-radius, 12px);
border-top-right-radius: var(--border-radius, 0px);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,13 @@ export class GrwTouristicEvent {
loading="lazy"
/>
) : (
<div></div>
<img
/* @ts-ignore */
crossorigin="anonymous"
class="image default-touristic-event-img"
src={defaultImageSrc}
loading="lazy"
/>
)}
</div>
<div part="touristic-event-sub-container" class="touristic-event-sub-container">
Expand Down
4 changes: 3 additions & 1 deletion src/components/grw-trek-card/grw-trek-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@
height: 100%;
.trek-img {
width: 250px;
height: 200px;
height: inherit;
border-bottom-left-radius: var(--border-radius, 12px);
border-top-right-radius: var(--border-radius, 0px);
}
}
}
Expand Down

0 comments on commit a21c4e7

Please sign in to comment.