when i use this code
<div
style={{
display: "flex",
flexWrap: "wrap",
height: 400,
width: 600,
border: "solid 1px #ddd",
overflow: "scroll"
}}
>
{this.state.images.map(({ png, description }, i) => (
<img
style={{
border: "solid 1px #ddd",
padding: 7,
margin: 4,
borderRadius: 4,
display: "flex",
flexDirection: "column"
}}
alt={description}
src={png}
key={i}
height={34}
width={34}
/>
))}
</div>
it produce
but if i want to make the image bigger
<div
style={{
display: "flex",
flexWrap: "wrap",
height: 400,
width: 600,
border: "solid 1px #ddd",
overflow: "scroll"
}}
>
{this.state.images.map(({ png, description }, i) => (
<img
style={{
border: "solid 1px #ddd",
padding: 7,
margin: 4,
borderRadius: 4,
display: "flex",
flexDirection: "column"
}}
alt={description}
src={png}
key={i}
height={64}
width={64}
/>
))}
</div>
the image overlaps
any idea why this is happening ?