From adfb8d7c56d27d26e219a8e6e46575464af0a95a Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Wed, 13 Apr 2022 15:53:26 +0100 Subject: [PATCH] Only apply to small components (button, headline) --- packages/client/src/components/preview/SettingsBar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/preview/SettingsBar.svelte b/packages/client/src/components/preview/SettingsBar.svelte index 05df1ef898..06ff159fcf 100644 --- a/packages/client/src/components/preview/SettingsBar.svelte +++ b/packages/client/src/components/preview/SettingsBar.svelte @@ -67,7 +67,7 @@ } //If element is at the very top of the screen, put the bar below the element - if (elBounds.top < elBounds.height) { + if (elBounds.top < elBounds.height && elBounds.height < 80) { newTop = elBounds.bottom + verticalOffset }