From ba851b85baf1647d0cdf767f80066c4ca784cc8a Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 30 Aug 2021 13:56:20 +0300 Subject: [PATCH] New card (#88) Signed-off-by: Alexander Platov --- packages/ui/src/components/Dialog.svelte | 9 +++++---- packages/ui/src/components/Popup.svelte | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/components/Dialog.svelte b/packages/ui/src/components/Dialog.svelte index e2bd87c7b9..f2ad72721f 100644 --- a/packages/ui/src/components/Dialog.svelte +++ b/packages/ui/src/components/Dialog.svelte @@ -33,10 +33,10 @@
{ okAction(); dispatch('close') }}> -
+
@@ -60,9 +60,10 @@ .dialog { display: flex; flex-direction: column; + margin-top: 100px; width: 45rem; - min-height: 100vh; - max-height: 100vh; + min-height: calc(100vh - 100px); + max-height: calc(100vh - 100px); background-color: var(--theme-bg-color); border-radius: 1.875rem 0 0 1.875rem; box-shadow: 0px 3.125rem 7.5rem rgba(0, 0, 0, .4); diff --git a/packages/ui/src/components/Popup.svelte b/packages/ui/src/components/Popup.svelte index f5aebcb0e6..4c99455bc1 100644 --- a/packages/ui/src/components/Popup.svelte +++ b/packages/ui/src/components/Popup.svelte @@ -48,7 +48,8 @@ } if (rect.left > document.body.clientWidth - rect.right) { // style += 'left' - modalHTML.style.right = document.body.clientWidth - rect.right + 'px' + // modalHTML.style.right = document.body.clientWidth - rect.right + 'px' + modalHTML.style.right = '0px' } else { // style += 'right' modalHTML.style.left = rect.left + 'px'