File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/app/_samples/mediaco/components/gallery-grid Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 3434.grid-container {
3535 flex : 1 ;
3636 display : grid ;
37- grid-template-columns : repeat (auto-fill , minmax (400 px , 1fr ));
37+ grid-template-columns : repeat (auto-fill , minmax (350 px , 1fr ));
3838 gap : 20px ;
3939 padding : 24px ;
4040 overflow-y : auto ;
41+ max-height : calc (100% - 150px );
4142}
4243
4344.grid-item {
4445 position : relative ;
45- display : flex ;
4646 flex-direction : column ;
4747 border : 1px solid #e0e0e0 ;
4848 border-radius : 1.5rem ;
49- overflow : hidden ;
50- background : white ;
51- box-shadow :
52- 0px 1px 2px 0px #0000004d ,
53- 0px 2px 6px 2px #00000026 ;
5449 transition : transform 0.2s ;
55- height : 240 px ;
50+ aspect-ratio : 4 / 3 ;
5651
5752 & :hover {
5853 transform : translateY (-4px );
6459 height : 100% ;
6560 object-fit : cover ;
6661 display : block ;
62+ border-radius : 1.5rem ;
6763 }
6864
6965 p {
You can’t perform that action at this time.
0 commit comments