Skip to content

Commit 228b264

Browse files
fix: ListView UI fixes (#656)
* fix: ListView UI fixes * fix: update styles for gallery grid and table template cards; adjust dialog dimensions in list view --------- Co-authored-by: tumms2021389 <[email protected]> Co-authored-by: Siva Rama Krishna <[email protected]>
1 parent f69022d commit 228b264

File tree

4 files changed

+56
-31
lines changed

4 files changed

+56
-31
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<div class="dialog-content">
22
<div class="dialog-header">
3-
<h2 mat-dialog-title>All Content</h2>
3+
<div>
4+
<h2>{{data.dataPage === 'D_AccountHistoryList' ? 'All Activities' : 'Featured Content'}}</h2>
5+
<div class="count">{{data.items.length}} items available</div>
6+
</div>
47
<button mat-icon-button (click)="close()">
58
<mat-icon>close</mat-icon>
69
</button>

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

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +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: 16px 24px;
21+
padding: 1.5rem 2rem;
2122
border-bottom: 1px solid #e0e0e0;
22-
background: #fff;
2323
flex-shrink: 0;
2424

2525
h2 {
26+
letter-spacing: 0;
27+
font-size: 45px;
28+
font-weight: 400;
29+
line-height: 52px;
2630
margin: 0;
27-
font-size: 22px;
28-
font-weight: 500;
2931
}
3032
}
3133

3234
.grid-container {
3335
flex: 1;
3436
display: grid;
35-
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
37+
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
3638
gap: 20px;
3739
padding: 24px;
3840
overflow-y: auto;
3941
}
4042

4143
.grid-item {
42-
border: 1px solid #e0e0e0;
43-
border-radius: 8px;
44-
overflow: hidden;
44+
position: relative;
4545
display: flex;
4646
flex-direction: column;
47+
border: 1px solid #e0e0e0;
48+
border-radius: 1.5rem;
49+
overflow: hidden;
4750
background: white;
48-
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;
4954
transition: transform 0.2s;
5055
height: 240px;
5156

@@ -56,33 +61,42 @@
5661

5762
img {
5863
width: 100%;
59-
height: 160px;
64+
height: 100%;
6065
object-fit: cover;
6166
display: block;
6267
}
6368

6469
p {
70+
position: absolute;
71+
bottom: 0;
72+
left: 0;
6573
margin: 0;
6674
padding: 16px;
67-
text-align: center;
6875
font-weight: 500;
69-
color: #333;
70-
flex: 1;
71-
display: flex;
72-
align-items: center;
73-
justify-content: center;
76+
color: #fff;
77+
letter-spacing: 0.15px;
78+
font-size: 16px;
79+
line-height: 24px;
7480
}
7581
}
7682

7783
.grid {
7884
display: grid;
7985
grid-template-columns: 1fr;
8086
gap: 18px;
81-
padding: 12px;
87+
padding: 1.5rem 2rem;
8288
overflow-y: scroll;
8389

8490
@media (min-width: 900px) {
8591
grid-template-columns: 1fr 1fr;
8692
gap: 22px;
8793
}
8894
}
95+
96+
.count {
97+
color: #6b7280;
98+
letter-spacing: 0.25px;
99+
font-size: 14px;
100+
font-weight: 400;
101+
line-height: 20px;
102+
}

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
.m-card {
22
border: 1px solid #e0e0e0;
3-
border-radius: 8px;
4-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
5-
padding: 14px 16px;
6-
transition: transform 0.2s;
3+
border-radius: 20px;
4+
box-shadow:
5+
0px 1px 2px 0px #0000004d,
6+
0px 2px 6px 2px #00000026;
7+
padding: 18px;
8+
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)