fix: scroll in router-outlet
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
15912
pnpm-lock.yaml
generated
15912
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user