Skip to content

Commit

Permalink
Merge pull request #12 from Fer-Bar/fix/carousel-image-sizing
Browse files Browse the repository at this point in the history
Fix: Carousel Image Sizing
  • Loading branch information
Fer-Bar authored Apr 14, 2024
2 parents 95dcef5 + 2b49d4e commit 8767c4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions pet/static/pet/css/main_carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
}

.carousel-item {
height: auto;
max-height: 90vh;


height: 33rem;
}
.carousel-item::before {
content: "";
Expand All @@ -26,7 +23,9 @@
}
.carousel-item img {
filter: blur(2px);
object-fit: cover;
width: 100%;
height: 100%;
}
@media (min-width: 40em) {
.carousel-caption p {
Expand Down
2 changes: 1 addition & 1 deletion pet/templates/pet/main_carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% for headline in headlines %}
<div class="carousel-item {% if forloop.first %}active{% endif %}">
<img src="{{ headline.image_url }}"
class="img-fluid d-block"
class="d-block"
alt="{{ headline.title }}">
<div class="container">
<div class="carousel-caption text-end">
Expand Down

0 comments on commit 8767c4b

Please sign in to comment.