fix: scroll in router-outlet

This commit is contained in:
2024-06-21 15:00:39 +03:00
parent fb3acd5182
commit 47060bcb2d
7 changed files with 15 additions and 15930 deletions

View File

@@ -1,6 +1,6 @@
<header> <header>
<app-panel></app-panel> <app-panel></app-panel>
</header> </header>
<main class="main"> <main>
<router-outlet></router-outlet> <router-outlet></router-outlet>
</main> </main>

View File

@@ -1,5 +1,5 @@
.main { main {
display: block; overflow-y: auto;
width: 100%; width: 100%;
height: calc(100% - 2rem); height: calc(100% - 2rem);
background-image: url("../assets/img/wallpaper.png"); background-image: url("../assets/img/wallpaper.png");

View File

@@ -6,4 +6,13 @@
width: 3rem; width: 3rem;
height: 3rem; height: 3rem;
color: white; color: white;
user-select: none;
width: fit-content;
height: fit-content;
padding: 1rem;
border-radius: 10px;
transition: .2s ease-in-out;
&:hover {
background-color: rgba(25, 17, 19, 0.7);
}
} }

View File

@@ -6,12 +6,6 @@
margin-inline: 2rem; margin-inline: 2rem;
} }
// fix scroll on router click
:host {
overflow-y: scroll;
height: fit-content;
}
h1 { h1 {
color: #efdee0; color: #efdee0;
text-align: center; text-align: center;

View File

@@ -25,16 +25,10 @@
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
} }
html { html, body {
position: relative;
height: 100%;
}
body {
width: 100%; width: 100%;
height: 100vh; height: 100%;
position: absolute; position: relative;
top: 0;
left: 0;
} }
ngneat-dialog { ngneat-dialog {
.ngneat-dialog-backdrop { .ngneat-dialog-backdrop {

BIN
bun.lockb

Binary file not shown.

15912
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff