Skip to content

Commit cd1f3dd

Browse files
committed
Updated the files for the padding change and styles
1 parent 15df1aa commit cd1f3dd

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

src/app/_samples/mediaco/components/carousel/carousel.component.scss

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
:host {
2-
display: block;
3-
width: 100%;
4-
min-width: 0;
5-
max-width: 100vw;
6-
overflow: hidden;
7-
contain: content;
8-
}
1+
// :host {
2+
// display: block;
3+
// width: 100%;
4+
// min-width: 0;
5+
// max-width: 100vw;
6+
// overflow: hidden;
7+
// contain: content;
8+
// }
99

1010
.carousel-host-container {
1111
width: 100%;
1212
position: relative;
1313
overflow: hidden;
1414
display: flex;
1515
flex-direction: column;
16+
// padding: 20px 25px;
1617
}
1718

1819
.header {
@@ -34,13 +35,13 @@
3435
align-items: center;
3536
width: 100%;
3637
max-width: 100%;
37-
height: 400px;
3838
padding: 0;
3939
overflow-x: auto;
4040
overflow-y: hidden;
4141
scroll-behavior: auto;
4242
box-sizing: border-box;
4343
box-sizing: border-box;
44+
border-radius: 12px;
4445

4546
&::-webkit-scrollbar {
4647
display: none;

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,12 @@ <h3>{{ title }}</h3>
3232
</div>
3333
</div>
3434
</div>
35-
36-
<div class="text-right">
37-
<button mat-button color="primary" *ngIf="referenceDataPage !== 'D_TrendingItemsList' && template === 'Table'" (click)="openShowAll()">
38-
Show All
39-
</button>
40-
</div>
4135
</div>
4236
<div *ngIf="template === 'Gallery'">
4337
<div class="carousel-constraint-wrapper">
4438
<app-carousel *ngIf="sourceList" [data]="sourceList"></app-carousel>
4539
</div>
46-
<div class="carousel-footer">
47-
<button mat-button color="primary" (click)="openShowAll()">Show All</button>
48-
</div>
40+
</div>
41+
<div class="carousel-footer">
42+
<a mat-button color="primary" *ngIf="referenceDataPage !== 'D_TrendingItemsList'" (click)="openShowAll()">Show All</a>
4943
</div>

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ $primary-purple: #9c27b0;
203203
display: flex;
204204
width: 100%;
205205
justify-content: flex-end;
206-
padding: 0 16px 10px 16px;
206+
padding: 10px 0 10px 16px; /* Right padding removed */
207207
box-sizing: border-box;
208+
text-decoration: none;
209+
color: rgb(103, 80, 164); /* Color updated */
210+
}
211+
212+
/* This applies when you hover your mouse over the link */
213+
.carousel-footer:hover {
214+
cursor: pointer;
215+
text-decoration: underline;
208216
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Utils } from '@pega/angular-sdk-components';
55
import { CarouselComponent } from '../carousel/carousel.component';
66
import { GalleryGridComponent } from '../gallery-grid/gallery-grid.component';
77
import { MatDialog } from '@angular/material/dialog';
8-
import { MatButton } from '@angular/material/button';
98

109
interface ListViewProps {
1110
inheritedProps: any;
@@ -31,7 +30,7 @@ interface ListViewProps {
3130

3231
@Component({
3332
selector: 'app-list-view',
34-
imports: [CommonModule, CarouselComponent, MatButton],
33+
imports: [CommonModule, CarouselComponent],
3534
templateUrl: './list-view.component.html',
3635
styleUrl: './list-view.component.scss',
3736
providers: [Utils]

0 commit comments

Comments
 (0)