From 4be811d3e7f18354bcc0ea1a2cb0c7bb84d25bdb Mon Sep 17 00:00:00 2001 From: EETagent Date: Fri, 23 Dec 2022 21:39:42 +0100 Subject: [PATCH] feat: make more details responsive --- .../dashboard/DashboardInfoCard.svelte | 101 ++++++++---------- .../dashboard/StatusNotificationBig.svelte | 2 +- .../(authenticated)/dashboard/+page.svelte | 17 +-- 3 files changed, 55 insertions(+), 65 deletions(-) diff --git a/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte b/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte index 09b2455..a95499d 100644 --- a/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte +++ b/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte @@ -75,74 +75,61 @@ -
+
-
+

{title}

{#if showDetails} - -
Vámi vyplněné osobní údaje', - allowHTML: true, - placement: 'top', - showOnCreate: false, - delay: 0 - }} - class="flex flex-col justify-around <2xl:text-xs" - > - Adresa: {$candidateData.candidate.address} - Datum narození: {$candidateData.candidate.birthdate} +
Vámi vyplněné osobní údaje', + allowHTML: true, + placement: 'top', + showOnCreate: false, + delay: 0 + }} + class="flex flex-col justify-between leading-10 mt-4" > - Místo narození: {$candidateData.candidate.birthplace}Adresa: {$candidateData.candidate.address} + Datum narození: {$candidateData.candidate.birthdate} + Místo narození: {$candidateData.candidate.birthplace} + Rodné číslo: {$candidateData.candidate.personalIdNumber} + Telefon: {$candidateData.candidate.telephone} +
+
Vámi vyplněné osobní údaje', + allowHTML: true, + placement: 'top', + showOnCreate: false, + delay: 0 + }} + class="flex flex-col leading-10 mt-4" > - Rodné číslo: {$candidateData.candidate.personalIdNumber} - Telefon: {$candidateData.candidate.telephone} -
-
Vámi vyplněné osobní údaje', - allowHTML: true, - placement: 'top', - showOnCreate: false, - delay: 0 - }} - class="md:ml-4 flex flex-col <2xl:text-xs" - > - {#each $candidateData.parents as parent} -
- {parent.name + ' ' + parent.surname} - Email: {parent.email} - Telefon: {parent.telephone} -
- {/each} + {#each $candidateData.parents as parent} +
+ {parent.name + ' ' + parent.surname} + Email: {parent.email} + Telefon: {parent.telephone} +
+ {/each} +
{/if}
diff --git a/frontend/src/lib/components/dashboard/StatusNotificationBig.svelte b/frontend/src/lib/components/dashboard/StatusNotificationBig.svelte index a0292a2..537d617 100644 --- a/frontend/src/lib/components/dashboard/StatusNotificationBig.svelte +++ b/frontend/src/lib/components/dashboard/StatusNotificationBig.svelte @@ -24,7 +24,7 @@
- {title} + {title} {#if loading}
Uchazeč na SSPŠ
-
- +
+
-
+
-
+
@@ -93,10 +93,13 @@