From e1d102c0c3d6d5c22026e6249d8a40ff12426981 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 8 Sep 2021 09:40:02 +0100 Subject: [PATCH] Update position of indicators in preview to clip better --- .../src/components/preview/Indicator.svelte | 22 +++++++++++++------ .../components/preview/IndicatorSet.svelte | 11 +++++++--- .../src/components/preview/SettingsBar.svelte | 9 ++++++++ 3 files changed, 32 insertions(+), 10 deletions(-) diff --git a/packages/client/src/components/preview/Indicator.svelte b/packages/client/src/components/preview/Indicator.svelte index fb1b5f320f..95364d0278 100644 --- a/packages/client/src/components/preview/Indicator.svelte +++ b/packages/client/src/components/preview/Indicator.svelte @@ -18,10 +18,11 @@ }} out:fade={{ duration: transition ? 130 : 0 }} class="indicator" + class:flipped={top < 20} style="top: {top}px; left: {left}px; width: {width}px; height: {height}px; --color: {color}; --zIndex: {zIndex};" > {#if text} -
+
{text}
{/if} @@ -29,11 +30,17 @@