Skip to content

Commit 492ee3d

Browse files
author
Your Name
committed
Angular Material In Depth
1 parent 555ce3e commit 492ee3d

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

src/app/course-dialog/course-dialog.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export function openEditCourseDialog(dialog: MatDialog, course:Course) {
5252

5353
config.disableClose = true;
5454
config.autoFocus = true;
55+
config.panelClass = "modal-panel";
56+
config.backdropClass = "backdrop-modal-panel";
5557

5658
config.data = {
5759
...course

src/app/courses-card-list/courses-card-list.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class CoursesCardListComponent implements OnInit {
1515
@Input()
1616
courses: Course[];
1717

18-
cols = 3;
18+
cols = 1;
1919

2020
rowHeight = '500px';
2121

@@ -27,7 +27,7 @@ export class CoursesCardListComponent implements OnInit {
2727
}
2828

2929
ngOnInit() {
30-
30+
/*
3131
this.responsive.observe([
3232
Breakpoints.TabletPortrait,
3333
Breakpoints.TabletLandscape,
@@ -58,6 +58,8 @@ export class CoursesCardListComponent implements OnInit {
5858
}
5959
6060
});
61+
*/
62+
6163

6264
}
6365

src/app/home/home.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
.courses-panel {
4-
max-width: 1500px;
4+
max-width: 460px;
55
margin: 0 auto;
66
}
77

src/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
12
@use '@angular/material' as mat;
23
/* You can add global styles to this file, and also import other style files */
34

45
@import "@angular/material/prebuilt-themes/indigo-pink.css";
56

7+
@import "./mixins";
8+
9+
@include responsive-dialogs();
10+
611
.highlight-date {
712
background: red;
813
}

0 commit comments

Comments
 (0)