Fix sidebar glitch on resize (#7903)

* fix sidebar glitch on resize

* move scroll-padding-top property to original line

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
Azri Kahar
2021-09-16 05:07:58 +08:00
committed by GitHub
parent 91bb10b49f
commit dd319793a5
2 changed files with 2 additions and 4 deletions

View File

@@ -146,6 +146,7 @@ export default defineComponent({
display: flex;
width: 100%;
height: 100%;
overflow-x: hidden;
background-color: var(--background-page);
.nav-overlay {
@@ -267,12 +268,10 @@ export default defineComponent({
position: relative;
flex-basis: 60px;
flex-shrink: 0;
transform: none;
transition: flex-basis var(--slow) var(--transition);
transition: flex-basis var(--slow) var(--transition), transform var(--slow) var(--transition);
&.is-open {
flex-basis: 280px;
transform: none;
}
}
}

View File

@@ -82,4 +82,3 @@ By default, the `create-directus-project` tool will set the file permissions of
## Configure / Update / Upgrade your Project
See the [Project Guide](/guides/projects/#upgrading-updating-a-project) to learn how to maintain your project further.