Skip to content

Commit 51630c9

Browse files
committed
feat(ngx-material-pages): improved the layout
1 parent 03ae461 commit 51630c9

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

src/module/components/ngx-material-pages/ngx-material-page-content/ngx-material-page-content.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ng-template>
22
<mat-card style="margin: 2rem">
3-
<mat-card-title>{{title}} 21</mat-card-title>
3+
<mat-card-title>{{title}}</mat-card-title>
44
<mat-card-content>
55
<ng-content></ng-content>
66
</mat-card-content>

src/module/components/ngx-material-pages/ngx-material-pages.component.html

+2-12
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,17 @@
1717
<button mat-icon-button>
1818
<mat-icon>menu</mat-icon>
1919
</button>
20-
ngx-auth-firebaseui - npm install
20+
ngx-material-pages
2121
</mat-toolbar>
2222
<div class="demo-sidenav-content main-container">
2323

24-
<mat-tab-group [selectedIndex]="index" style="height: 80vh;">
24+
<mat-tab-group [selectedIndex]="index" style="min-height: 15vh;">
2525
<button mat-fab color="warn" (click)="previous()">
2626
<mat-icon>location</mat-icon>
2727
</button>
2828
<mat-tab *ngFor="let page of pages;let i = index;">
2929
<ng-container [ngTemplateOutlet]="page.pageContent.content"></ng-container>
3030
</mat-tab>
31-
<mat-tab style="background: blue; margin: 2rem;">
32-
<mat-card style="background: red; margin: 5rem; height: 1300px">
33-
<mat-card-title>
34-
Title1
35-
</mat-card-title>
36-
<mat-card-content>
37-
<h2>test</h2>
38-
</mat-card-content>
39-
</mat-card>
40-
</mat-tab>
4131
</mat-tab-group>
4232

4333

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
::ng-deep .mat-tab-label-container {
2+
display: none !important;
3+
}

src/module/components/ngx-material-pages/ngx-material-pages.component.ts

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import {StepperSelectionEvent} from '@angular/cdk/stepper';
1515
selector: 'ngx-material-pages',
1616
templateUrl: './ngx-material-pages.component.html',
1717
styleUrls: ['./ngx-material-pages.component.scss'],
18-
encapsulation: ViewEncapsulation.None,
19-
changeDetection: ChangeDetectionStrategy.OnPush,
2018
})
2119
export class NgxMaterialPagesComponent implements OnInit, AfterContentInit {
2220

0 commit comments

Comments
 (0)