I'm currently working on creating a movie watchlist interface, but I'm facing challenges with maintaining the design consistency. I am utilizing the tmdb API to retrieve movie information. My goal is to have each section resemble the first one (Halo), however, in the other two sections, the images are overflowing and disrupting the layout. Your assistance would be greatly appreciated.
https://i.sstatic.net/8G2a4.png
React Code Snippet
/* Here is the corresponding style.scss */
@import "../../mixins.scss";
.watchList {
background-color: var(--black);
padding-top: 50px;
margin-bottom: 10px;
.item {
margin: 10px auto;
width: 500px;
height: 350px;
border: 2px solid white;
.itemWrapper {
position: relative;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
.posterBlock {
position: relative;
width: 40%;
.posterImg {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.textBlock {
display: flex;
flex-direction: column;
margin-left: 15px;
.title {
font-size: 2em;
color: white;
margin-bottom: 10px;
}
...
Example Rendered Output
:root {
--black: black;
}
body {
font-family: sans-serif;
}
.watchList {
background-color: var(--black);
padding-top: 50px;
margin-bottom: 10px;
}
.watchList .item {
margin: 10px auto;
width: 500px;
height: 350px;
border: 2px solid white;
}
.watchList .item .itemWrapper ...
<div class="watchList">
<div class="ContentWrapper">
<div class="item">
<div class="itemWrapper">
<div class="posterBlock">
<Img class="posterImg" src=...