Skip to content

Commit 3f33f96

Browse files
authored
fix: Adjust grid layout and item styles for better responsiveness (#662)
1 parent f4ac378 commit 3f33f96

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/app/_samples/mediaco/components/gallery-grid/gallery-grid-component.scss

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,20 @@
3434
.grid-container {
3535
flex: 1;
3636
display: grid;
37-
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
37+
grid-template-columns: repeat(auto-fill, minmax(350px, 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: 240px;
50+
aspect-ratio: 4 / 3;
5651

5752
&:hover {
5853
transform: translateY(-4px);
@@ -64,6 +59,7 @@
6459
height: 100%;
6560
object-fit: cover;
6661
display: block;
62+
border-radius: 1.5rem;
6763
}
6864

6965
p {

0 commit comments

Comments
 (0)