Currently experiencing an uncommon issue while using Material UI's Card component - the box-shadow is cut off on the top and bottom sides.
Any suggestions on how to resolve this problem?
Check out my code below:
import React, { Component } from 'react'
import './demo.css'
import { Card } from '@material-ui/core';
export default class MasonryLayout extends Component {
render() {
return (
<div className="masonry">
<Card className="item" style={{height:"120px"}} elevation={4}/>
<Card className="item" style={{height:"190px"}} elevation={4}/>
<Card className="item" style={{height:"220px"}} elevation={4}/>
<Card className="item" style={{height:"130px"}} elevation={4}/>
<Card className="item" style={{height:"140px"}} elevation={4}/>
</div>
)
}
}
.masonry {
column-count: 2;
column-gap: 56px;
margin: 50px;
}
.item {
margin-bottom: 40px;
break-inside: avoid;
}
See screenshot below: