Browse Source

Update form block styles to expect a header when buttons are defined

pull/7456/head
Andrew Kingston 4 years ago
parent
commit
d12b20bd95
  1. 14
      packages/client/src/components/app/blocks/FormBlock.svelte

14
packages/client/src/components/app/blocks/FormBlock.svelte

@ -158,20 +158,18 @@
type="container"
props={{
direction: "row",
hAlign: title ? "stretch" : "right",
hAlign: "stretch",
vAlign: "center",
gap: "M",
wrap: true,
}}
order={0}
>
{#if title}
<BlockComponent
type="heading"
props={{ text: title }}
order={0}
/>
{/if}
<BlockComponent
type="heading"
props={{ text: title || "" }}
order={0}
/>
{#if renderButtons}
<BlockComponent
type="container"

Loading…
Cancel
Save