Skip to content

Commit e3b2e62

Browse files
author
Tomasz Dłuski
committed
more fixes to the css
1 parent 8e3a0c8 commit e3b2e62

File tree

11 files changed

+24
-25
lines changed

11 files changed

+24
-25
lines changed

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"builder": "@angular-devkit/build-angular:browser",
1616
"configurations": {
1717
"production": {
18-
"browserTarget": "angular8:build:production"
1918
}
2019
},
2120
"options": {

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src-website/app/components/demo/demo.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ <h2 #viewInFullscreen>View in fullscreen</h2>
1717
Fullscreen mode lets you see how actual app looks like.
1818
Some features are available only in fullscreen mode, e.g. minimap and toolbar expand-collapse.
1919
</p>
20-
<button type="button" class="toggle-fullscreen-btn" md-raised-button (click)="toggleFullscreen()">
20+
<button type="button" class="toggle-fullscreen-btn" mat-raised-button (click)="toggleFullscreen()">
2121
<mat-icon>fullscreen_enter</mat-icon>
2222
Fullscreen
2323
</button>
2424
</section>
2525

2626
<efd-root [allowToolbarCollapse]="fullscreen" (diagramLoad)="onDiagramLoaded($event)"></efd-root>
2727

28-
<button *ngIf="fullscreen" type="button" class="toggle-fullscreen-btn" md-fab matTooltip="Exit fullscreen mode"
28+
<button *ngIf="fullscreen" type="button" class="toggle-fullscreen-btn" mat-fab matTooltip="Exit fullscreen mode"
2929
[matTooltipPosition]="right" (click)="toggleFullscreen()">
3030
<mat-icon>fullscreen_exit</mat-icon>
3131
</button>

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src-website/app/components/homepage/homepage.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header>
22
<h1 class="mat-h1">Database Diagrams</h1>
33
<h2 class="mat-h2">Entity Framework Core model visualization</h2>
4-
<a [routerLink]="['/guides/getting-started']" md-raised-button>Get Started</a>
4+
<a [routerLink]="['/guides/getting-started']" mat-raised-button>Get Started</a>
55
</header>
66

77
<main>

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src-website/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ html {
99
body {
1010
margin: 0;
1111

12-
[md-button],
13-
[md-raised-button] {
12+
[mat-button],
13+
[mat-raised-button] {
1414
text-transform: uppercase;
1515
}
1616
}

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src/app/components/db-diagram/db-diagram.component.html

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

2-
<md-spinner *ngIf="!model"></md-spinner>
2+
<mat-spinner *ngIf="!model"></mat-spinner>
33

44
<h1 *ngIf="!model.entities || model.entities.length === 0">Database model is empty</h1>
55

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src/app/components/db-entity-diagram-figure/db-entity-diagram-figure.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</button>
1010
</mat-card-title>
1111
<mat-card-content [class.collapsed]="entityLayout.collapsed">
12-
<mat-table #table [dataSource]="propertiesDataSource">
12+
<mat-table cdk-table #table [dataSource]="propertiesDataSource">
1313
<!-- Key Column -->
1414
<ng-container cdkColumnDef="key">
1515
<mat-header-cell *cdkHeaderCellDef>
@@ -53,4 +53,4 @@
5353
<mat-row *cdkRowDef="let row; columns: modelLayout.entitiesTableSettings.displayedColumnsKeys;"></mat-row>
5454
</mat-table>
5555
</mat-card-content>
56-
</mat-card>
56+
</mat-card>

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src/app/components/db-entity-diagram-figure/db-entity-diagram-figure.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class DbEntityDiagramFigureComponent implements OnInit, OnChanges, AfterV
9696
}
9797

9898
ngAfterViewInit() {
99-
// NOTE: force md-table to display initial data. Seems like a bug in library
99+
// NOTE: force mat-table to display initial data. Seems like a bug in library
100100
this._changeDetector.detectChanges();
101101

102102
const entityElement = this._el.nativeElement as HTMLElement;
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11

2-
<h2 md-dialog-title>Export</h2>
2+
<h2 mat-dialog-title>Export</h2>
33

4-
<md-dialog-content>
4+
<mat-dialog-content>
55

6-
<md-radio-group [(ngModel)]="selectedExportType">
7-
<md-radio-button [value]="exportTypeLayout">Layout only</md-radio-button>
8-
<md-radio-button [value]="exportTypeModelWithLayout">Model with Layout</md-radio-button>
9-
</md-radio-group>
6+
<mat-radio-group [(ngModel)]="selectedExportType">
7+
<mat-radio-button [value]="exportTypeLayout">Layout only</mat-radio-button>
8+
<mat-radio-button [value]="exportTypeModelWithLayout">Model with Layout</mat-radio-button>
9+
</mat-radio-group>
1010

11-
</md-dialog-content>
11+
</mat-dialog-content>
1212

13-
<md-dialog-actions>
13+
<mat-dialog-actions>
1414

15-
<a [efdDownloadData]="exportData" [efdDownloadFilename]="exportFilename" md-button (click)="close()">
15+
<a [efdDownloadData]="exportData" [efdDownloadFilename]="exportFilename" mat-button (click)="close()">
1616
<mat-icon>file_download</mat-icon>
1717
Export
1818
</a>
1919

20-
<button md-button md-dialog-close>Cancel</button>
20+
<button mat-button mat-dialog-close>Cancel</button>
2121

22-
</md-dialog-actions>
22+
</mat-dialog-actions>

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src/app/components/export-dialog/export-dialog.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
display: flex;
66
flex-direction: column;
77

8-
md-dialog-content {
8+
mat-dialog-content {
99
flex: 1;
1010
padding: 16px;
1111

12-
md-radio-button {
12+
mat-radio-button {
1313
display: block;
1414
margin-bottom: 16px;
1515
}

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src/app/components/scaling-toolbar/scaling-toolbar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</button>
55

66

7-
<button type="button" md-button (click)="resetZoom()">
7+
<button type="button" mat-button (click)="resetZoom()">
88
{{ scale * 100 | number:'1.0-0' }} %
99
</button>
1010

0 commit comments

Comments
 (0)