From a302c8cf730ce5fcb3ae2a2f5bd02c1e6e8f8ed6 Mon Sep 17 00:00:00 2001 From: Aaron Cox Date: Mon, 2 Dec 2024 19:23:19 -0800 Subject: [PATCH] Fixed action layout --- .../actions/[action]/[[data]]/+page.svelte | 49 +++++++++---------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte index ea98bfba..58d87297 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte @@ -10,12 +10,11 @@ import Button from '$lib/components/button/button.svelte'; import Card from '$lib/components/layout/box/card.svelte'; import Code from '$lib/components/code.svelte'; - import Grid from '$lib/components/layout/grid.svelte'; import Label from '$lib/components/input/label.svelte'; - import Stack from '$lib/components/layout/stack.svelte'; import Textinput from '$lib/components/input/text.svelte'; import Fields from './fields.svelte'; + import { MultiCard } from '$lib/components/layout'; const { data } = $props(); @@ -118,32 +117,30 @@ } - - - - - - - - {#if data.ricardian} -

Ricardian Contract

- {#if data.ricardian.meta} -

Title: {data.ricardian.meta.title}

-

Summary: {data.ricardian.meta.summary}

- {/if} - {#if data.ricardian.text} -

{data.ricardian.text}

- {/if} + + + + + + + {#if data.ricardian} +

Ricardian Contract

+ {#if data.ricardian.meta} +

Title: {data.ricardian.meta.title}

+

Summary: {data.ricardian.meta.summary}

{/if} -

Data Representation

- {#if decoded} - {JSON.stringify(decoded, null, 2)} - {:else} -

Fill out the form to create a representation of the data in this type of action.

+ {#if data.ricardian.text} +

{data.ricardian.text}

{/if} -
-
-
+ {/if} +

Data Representation

+ {#if decoded} + {JSON.stringify(decoded, null, 2)} + {:else} +

Fill out the form to create a representation of the data in this type of action.

+ {/if} + +

Transaction Link