Skip to content

Commit

Permalink
Fix: Adjust image sizing in carousel to fill container
Browse files Browse the repository at this point in the history
  • Loading branch information
Fer-Bar committed Apr 14, 2024
1 parent 0775674 commit 2b49d4e
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 2b49d4e

Please sign in to comment.