I am facing an issue with a component in Angular 14 using Bootstrap v4.6:
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100 d-sm-none" src="/assets/headers/unite-header-movil.png" alt="First slide">
<img class="w-100 logo-header d-none d-sm-block" src="/assets/headers/Pokemon-Unite-main.webp">
<div class="logo-unite-header row justify-content-center">
<div class="col-5 col-sm-3 d-none d-sm-block">
<img class="w-100 logo-header" src="/assets/headers/unite-logo.png">
</div>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100 d-sm-none" src="/assets/headers/header.jpg" alt="Second slide">
<img class="d-none w-100 d-sm-block" src="/assets/headers/header-medium-up.jpg" alt="Second slide">
<div class="logos-header row justify-content-center w-100 m-0">
<div class="col-5 col-sm-3">
<img class="w-100 logo-header" src="/assets/headers/pokemon-scarlet-logo-medium-up.webp">
</div>
<div class="col-5 col-sm-3">
<img class="w-100 logo-header" src="/assets/headers/pokemon-violet-logo-medium-up.webp">
</div>
</div>
</div>
</div>
</div>
The .logos-header and .logo-unite-header classes are being adjusted vertically using transform: translateY().
The height of the item-carousel is currently based on their heights, but I would like it to be the same as the image next to these classes.
If I set height: 0 and overflow: visible, the height of .item-carousel adjusts correctly but the elements inside become invisible.
Any help or suggestions would be greatly appreciated! Thank you!