Skip to content

Commit 9adefbb

Browse files
committed
fix: update styles for gallery grid and table template cards; adjust dialog dimensions in list view
1 parent c84e01f commit 9adefbb

File tree

3 files changed

+45
-27
lines changed

3 files changed

+45
-27
lines changed

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

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,46 @@
1111
flex-direction: column;
1212
height: 100%;
1313
overflow: hidden;
14+
background: #f8f2fb;
1415
}
1516

1617
.dialog-header {
1718
display: flex;
1819
justify-content: space-between;
1920
align-items: center;
20-
padding: 15px 25px;
21+
padding: 1.5rem 2rem;
2122
border-bottom: 1px solid #e0e0e0;
2223
flex-shrink: 0;
2324

2425
h2 {
25-
font-size: 30px;
26+
letter-spacing: 0;
27+
font-size: 45px;
2628
font-weight: 400;
27-
margin: 10px 0;
29+
line-height: 52px;
30+
margin: 0;
2831
}
2932
}
3033

3134
.grid-container {
3235
flex: 1;
3336
display: grid;
34-
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
37+
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
3538
gap: 20px;
3639
padding: 24px;
3740
overflow-y: auto;
3841
}
3942

4043
.grid-item {
41-
border: 1px solid #e0e0e0;
42-
border-radius: 8px;
43-
overflow: hidden;
44+
position: relative;
4445
display: flex;
4546
flex-direction: column;
47+
border: 1px solid #e0e0e0;
48+
border-radius: 1.5rem;
49+
overflow: hidden;
4650
background: white;
47-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
51+
box-shadow:
52+
0px 1px 2px 0px #0000004d,
53+
0px 2px 6px 2px #00000026;
4854
transition: transform 0.2s;
4955
height: 240px;
5056

@@ -55,29 +61,30 @@
5561

5662
img {
5763
width: 100%;
58-
height: 160px;
64+
height: 100%;
5965
object-fit: cover;
6066
display: block;
6167
}
6268

6369
p {
70+
position: absolute;
71+
bottom: 0;
72+
left: 0;
6473
margin: 0;
6574
padding: 16px;
66-
text-align: center;
6775
font-weight: 500;
68-
color: #333;
69-
flex: 1;
70-
display: flex;
71-
align-items: center;
72-
justify-content: center;
76+
color: #fff;
77+
letter-spacing: 0.15px;
78+
font-size: 16px;
79+
line-height: 24px;
7380
}
7481
}
7582

7683
.grid {
7784
display: grid;
7885
grid-template-columns: 1fr;
7986
gap: 18px;
80-
padding: 19px 25px;
87+
padding: 1.5rem 2rem;
8188
overflow-y: scroll;
8289

8390
@media (min-width: 900px) {
@@ -88,5 +95,8 @@
8895

8996
.count {
9097
color: #6b7280;
91-
font-size: 13px;
98+
letter-spacing: 0.25px;
99+
font-size: 14px;
100+
font-weight: 400;
101+
line-height: 20px;
92102
}

src/app/_samples/mediaco/components/gallery-grid/table-template-card/table-template-card.scss

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
.m-card {
22
border: 1px solid #e0e0e0;
33
border-radius: 20px;
4-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
4+
box-shadow:
5+
0px 1px 2px 0px #0000004d,
6+
0px 2px 6px 2px #00000026;
57
padding: 18px;
68
transition: transform 0.1s;
9+
background: #f3edf7;
710

811
&:hover {
912
transform: scale(1.01);
@@ -23,8 +26,8 @@
2326
}
2427

2528
.m-icon {
26-
min-width: 48px;
27-
min-height: 48px;
29+
min-width: 64px;
30+
min-height: 64px;
2831
border-radius: 12px;
2932
display: grid;
3033
place-items: center;
@@ -41,12 +44,17 @@
4144
gap: 4px;
4245
}
4346
.m-title {
44-
font-weight: 600;
45-
color: #111827;
47+
letter-spacing: 0;
48+
font-size: 22px;
49+
font-weight: 400;
50+
line-height: 28px;
51+
color: #1d1b20;
4652
}
4753
.m-desc {
48-
color: #6b7280;
54+
letter-spacing: 0.25px;
4955
font-size: 14px;
56+
font-weight: 400;
57+
line-height: 20px;
5058
}
5159

5260
.bg-0 {

src/app/_samples/mediaco/components/list-view/list-view.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ export class ListViewComponent implements OnInit {
197197

198198
openShowAll() {
199199
this.dialog.open(GalleryGridComponent, {
200-
width: '60vw',
201-
height: '70vh',
202-
maxWidth: '95vw',
203-
maxHeight: '95vh',
200+
width: '100%',
201+
height: '100%',
202+
maxWidth: '1400px',
203+
maxHeight: '90vh',
204204

205205
data: {
206206
dataPage: this.referenceDataPage,

0 commit comments

Comments
 (0)