Skip to content

Commit b39fd47

Browse files
committed
changes to show footer only at end
1 parent 20c4676 commit b39fd47

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/app/_samples/mediaco/components/wss-nav-bar/wss-nav-bar.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</div>
3838
</mat-nav-list>
3939
</mat-sidenav>
40-
<mat-sidenav-content [class.collapsed-mode]="collapsed">
40+
<mat-sidenav-content [class.collapsed-mode]="collapsed" class="page-container">
4141
<!-- Top Toolbar -->
4242

4343
<mat-toolbar style="position: sticky; top: 0; z-index: 10">
@@ -71,7 +71,7 @@
7171
</mat-toolbar-row>
7272
</mat-toolbar>
7373

74-
<div *ngFor="let kid of arChildren$">
74+
<div class="content-wrapper" *ngFor="let kid of arChildren$">
7575
<div *ngIf="kid.getPConnect().getComponentName() == 'ViewContainer'">
7676
<component-mapper name="ViewContainer" [props]="{ pConn$: kid.getPConnect() }"></component-mapper>
7777
</div>

src/app/_samples/mediaco/components/wss-nav-bar/wss-nav-bar.component.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,21 @@ mat-nav-list {
218218
::ng-deep .custom-menu-no-padding .mat-mdc-menu-content {
219219
padding: 0 !important;
220220
}
221+
222+
/*
223+
* Apply flexbox to the mat-sidenav-content to control the layout of its direct children.
224+
* We're also ensuring it takes up at least the full height of the viewport.
225+
*/
226+
.page-container {
227+
display: flex;
228+
flex-direction: column;
229+
min-height: 100vh;
230+
}
231+
232+
/*
233+
* This tells the main content area to grow and take up any available
234+
* free space, which pushes the footer down.
235+
*/
236+
.content-wrapper {
237+
flex: 1;
238+
}

0 commit comments

Comments
 (0)