From d01c078cd9d13dbb4482c6392c4386f960d4c005 Mon Sep 17 00:00:00 2001 From: tglide <26071571+TGlide@users.noreply.github.com> Date: Tue, 16 May 2023 10:51:07 +0100 Subject: [PATCH] refactor: command center positioning --- src/lib/components/dialog.svelte | 9 ++++++--- src/routes/console/commandCenter.svelte | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/lib/components/dialog.svelte b/src/lib/components/dialog.svelte index daa2cb6c0..b3949b215 100644 --- a/src/lib/components/dialog.svelte +++ b/src/lib/components/dialog.svelte @@ -86,15 +86,18 @@ padding: 0.5rem; position: fixed; inset: 0; + background-color: hsl(var(--color-neutral-500) / 0.5); z-index: 9999; - - display: grid; - place-items: center; } .card { min-width: 400px; padding: 0.5rem; + + position: absolute; + top: clamp(128px, 20vh, 400px); + left: 50%; + translate: -50%; } diff --git a/src/routes/console/commandCenter.svelte b/src/routes/console/commandCenter.svelte index 1849432e3..1735870a1 100644 --- a/src/routes/console/commandCenter.svelte +++ b/src/routes/console/commandCenter.svelte @@ -1,4 +1,5 @@