From 112b879731d21b86562745f03c41d6149a534a66 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 19 Dec 2022 16:11:45 +0000 Subject: [PATCH] Update config checklist to properly center --- .../components/common/ConfigChecklist.svelte | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/packages/builder/src/components/common/ConfigChecklist.svelte b/packages/builder/src/components/common/ConfigChecklist.svelte index 05f3f7c719..91c5894f0d 100644 --- a/packages/builder/src/components/common/ConfigChecklist.svelte +++ b/packages/builder/src/components/common/ConfigChecklist.svelte @@ -8,28 +8,9 @@ } from "@budibase/bbui" import { admin } from "stores/portal" import { goto } from "@roxi/routify" - import { onMount } from "svelte" - - let width = window.innerWidth - $: side = width < 500 ? "right" : "left" - - const resizeObserver = new ResizeObserver(entries => { - if (entries?.[0]) { - width = entries[0].contentRect?.width - } - }) - - onMount(() => { - const doc = document.documentElement - resizeObserver.observe(doc) - - return () => { - resizeObserver.unobserve(doc) - } - }) - +
@@ -60,5 +41,6 @@ } .icon { cursor: pointer; + margin-bottom: -4px; }