From f5e559dac8920a7e54be21cebcece08fd8cb1d5e Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Wed, 13 Oct 2021 11:39:26 +0300 Subject: [PATCH] Update Card layout (#257) Signed-off-by: Alexander Platov --- .../presentation/src/components/Card.svelte | 68 +++++++++++-------- packages/theme/styles/_colors.scss | 8 +-- packages/ui/src/components/Button.svelte | 2 +- packages/ui/src/components/Status.svelte | 6 +- .../src/components/CreateCandidate.svelte | 13 +++- 5 files changed, 58 insertions(+), 39 deletions(-) diff --git a/packages/presentation/src/components/Card.svelte b/packages/presentation/src/components/Card.svelte index d42ca89bf2..5bf2da9f4f 100644 --- a/packages/presentation/src/components/Card.svelte +++ b/packages/presentation/src/components/Card.svelte @@ -31,6 +31,7 @@ export let spacePlaceholder: IntlString export let label: IntlString export let okLabel: IntlString + export let cancelLabel: IntlString export let okAction: () => void export let canSave: boolean = false @@ -41,23 +42,21 @@
-
+ {#if $$slots.error} +
+ +
+ {/if}
- {#if $$slots.error} -
- -
- {/if}
-
+
- {#if $$slots.contacts} -
- -
- {/if} +