From caf1a767330394f15de3a9dd440f45a778ea0845 Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Fri, 20 Dec 2024 21:59:51 +0100 Subject: [PATCH] style: improve table layout --- .../components/ModelTable/ModelTable.svelte | 8 ++++--- .../src/lib/components/ModelTable/Th.svelte | 2 +- .../ebios-rm/[id=uuid]/+page.svelte | 22 +++++++++++++------ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/frontend/src/lib/components/ModelTable/ModelTable.svelte b/frontend/src/lib/components/ModelTable/ModelTable.svelte index c504cb036..93516b82b 100644 --- a/frontend/src/lib/components/ModelTable/ModelTable.svelte +++ b/frontend/src/lib/components/ModelTable/ModelTable.svelte @@ -47,7 +47,7 @@ export let regionHead: CssClasses = ''; export let regionHeadCell: CssClasses = 'uppercase bg-white text-gray-700'; export let regionBody: CssClasses = 'bg-white'; - export let regionCell: CssClasses = ''; + export let regionCell: CssClasses = 'text-center'; export let regionFoot: CssClasses = ''; export let regionFootCell: CssClasses = ''; @@ -311,9 +311,11 @@ {@const component = field_component_map[key]} {#if component} - +
+ +
{:else} - + {#if Array.isArray(value)}
    {#each value as val} diff --git a/frontend/src/lib/components/ModelTable/Th.svelte b/frontend/src/lib/components/ModelTable/Th.svelte index febe0cbd6..6366cd597 100644 --- a/frontend/src/lib/components/ModelTable/Th.svelte +++ b/frontend/src/lib/components/ModelTable/Th.svelte @@ -14,7 +14,7 @@ class={_class} data-testid="tableheader" > -
    +