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>
<app-panel></app-panel>
</header>
<main class="main">
<main>
<router-outlet></router-outlet>
</main>

View File

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

View File

@@ -6,4 +6,13 @@
width: 3rem;
height: 3rem;
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;
}
// fix scroll on router click
:host {
overflow-y: scroll;
height: fit-content;
}
h1 {
color: #efdee0;
text-align: center;

View File

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