Fix Root Layout to be Responsive
All checks were successful
Quality Check / Linting (push) Successful in 23s
Quality Check / Linting (pull_request) Successful in 22s

This commit is contained in:
Dominik Säume 2025-01-09 01:23:36 +01:00
parent deadd4bf4b
commit 7bd7d141c1
3 changed files with 29 additions and 2 deletions

View file

@ -1,3 +1,5 @@
<app-header></app-header>
<app-notification-box></app-notification-box>
<main>
<router-outlet />
</main>

View file

@ -0,0 +1,17 @@
app-header {
width: 100%;
}
main {
flex-grow: 1;
min-width: 100%;
width: fit-content;
box-sizing: border-box;
padding: 2rem;
@media (min-width: 60rem) {
width: 80%;
min-width: 72rem;
max-width: 80rem;
}
}

View file

@ -1,9 +1,9 @@
@use '@angular/material' as mat;
html,
body {
height: 100%;
min-height: 100%;
margin: 0;
background: var(--mat-sys-surface);
@ -19,3 +19,11 @@ body {
density: 0));
}
app-root {
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}