diff --git a/client/src/styles/partials/generic/drawers.scss b/client/src/styles/partials/generic/drawers.scss index aab65af5..b2854af7 100644 --- a/client/src/styles/partials/generic/drawers.scss +++ b/client/src/styles/partials/generic/drawers.scss @@ -31,20 +31,16 @@ } .bd-drawer-contents { + // margin-top is set in JavaScript when the drawer is animating + // It still needs to be set here for it to animate transition: transform 0.2s ease, margin-top 0.2s ease, opacity 0.2s ease; transform: scaleY(0) translateY(0%); - margin-top: -50%; + margin-top: -100%; opacity: 0; > .bd-form-item:last-child > .bd-form-divider:last-child { display: none; } - - &::after { - content: ""; - display: block; - margin-top: 15px; - } } &.bd-drawer-open { @@ -67,6 +63,12 @@ transform: scaleY(1) translateY(0%); margin-top: 0%; opacity: 1; + + &::after { + content: ""; + display: block; + margin-top: 15px; + } } } } diff --git a/client/src/ui/components/common/Drawer.vue b/client/src/ui/components/common/Drawer.vue index 6a0e61a4..fcfeeca3 100644 --- a/client/src/ui/components/common/Drawer.vue +++ b/client/src/ui/components/common/Drawer.vue @@ -9,7 +9,7 @@ */