From bcc539936fa86e3edfc45b566f8b43b37227fdec Mon Sep 17 00:00:00 2001 From: Johan Nyman <johan@nytamin.se> Date: Tue, 23 Aug 2022 08:42:41 +0200 Subject: [PATCH] fix: when dragging a Part to "become a transparent group", the size of the target-placeholder should not take up any vertical space. Since that can cause wiggling. closes #61 --- apps/app/src/react/styles/group.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/app/src/react/styles/group.scss b/apps/app/src/react/styles/group.scss index b5cdea0b..53465732 100644 --- a/apps/app/src/react/styles/group.scss +++ b/apps/app/src/react/styles/group.scss @@ -12,6 +12,12 @@ $margin-v: 2rem; &--transparent { margin: $margin-v 0; + + .part.dragging { + padding: 0; + margin-top: calc(0px - 2rem); + top: 1rem; + } } &.selectable { cursor: pointer;