File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
src/app/_samples/mediaco/components/wss-nav-bar Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 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 ">
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 >
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments