From cb04b3fa7d92599f613bc7b77cdf059feaa429a5 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 16 Sep 2021 16:02:45 +0100 Subject: [PATCH] Ensure hover indicator is correctly hidden when using DND and improve DND labels --- .../src/components/preview/DNDHandler.svelte | 10 ++++++++-- .../components/preview/DNDPositionIndicator.svelte | 3 +-- .../client/src/components/preview/Indicator.svelte | 14 +++++++++++--- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/client/src/components/preview/DNDHandler.svelte b/packages/client/src/components/preview/DNDHandler.svelte index 111c009a3a..409eeb2d8f 100644 --- a/packages/client/src/components/preview/DNDHandler.svelte +++ b/packages/client/src/components/preview/DNDHandler.svelte @@ -1,7 +1,7 @@
{#if text} -
+
{text}
{/if} @@ -45,6 +46,9 @@ .indicator.flipped { border-top-left-radius: 4px; } + .indicator.line { + border-radius: 4px !important; + } .text { background-color: var(--color); color: white; @@ -70,4 +74,8 @@ transform: translateY(0%); top: -2px; } + .text.line { + transform: translateY(-50%) !important; + border-radius: 4px !important; + }