Skip to content

Commit 21baea4

Browse files
renemadsenclaude
andcommitted
fix(layout): make mat-drawer-container fill remaining height after toolbar
Changed mat-drawer-container from height: 100% (overflows past toolbar) to flex: 1 + overflow: hidden. Added mat-drawer-content flex column styling so routed content fills the available space. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 881b113 commit 21baea4

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

eform-client/src/app/components/layouts/full-layout/full-layout.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
<!-- </mat-menu>-->
3434
<!-- </div>-->
3535
</mat-toolbar>
36-
<mat-drawer-container autosize style="height: 100%;" class="mat-app-background">
36+
<mat-drawer-container autosize style="flex: 1; overflow: hidden;" class="mat-app-background">
3737
<mat-drawer
3838
#drawer
3939
[mode]="sidenavMode"
4040
[opened]="(selectSideMenuOpened$ | async) === true">
4141
<app-navigation (clickOnLink)="onClickOnLink()"></app-navigation>
4242
<app-footer></app-footer>
4343
</mat-drawer>
44-
<div class="mb-auto mat-app-background" *ngIf="selectIsAuth$ | async">
44+
<div class="mb-auto mat-app-background" style="flex: 1; overflow: auto;" *ngIf="selectIsAuth$ | async">
4545
<app-userback-widget></app-userback-widget>
4646
<router-outlet></router-outlet>
4747
</div>

eform-client/src/app/components/layouts/full-layout/full-layout.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
justify-content: space-between;
1818
}
1919

20+
:host ::ng-deep .mat-drawer-content {
21+
display: flex;
22+
flex-direction: column;
23+
}
24+
2025
.tag {
2126
width: $icon-size + $icon-size + $icon-size;
2227
justify-content: space-between;

0 commit comments

Comments
 (0)