Move TipTap to Bottom of AdminForm

This commit is contained in:
NeilClack
2026-03-18 11:15:08 -05:00
parent 56c688f674
commit b39b7008de
+3 -6
View File
@@ -55,11 +55,6 @@
placeholder="Select {label}"
value={getValue(field) as string | number | undefined}
/>
{:else if type === 'Tiptap'}
<TipTap
name={field}
initialContent={String(getValue(field) ?? '')}
/>
{:else if type === 'Boolean'}
<input
type="checkbox"
@@ -87,7 +82,7 @@
step={type === 'Float' ? '0.01' : '1'}
class="w-full rounded-lg border border-gray-300 px-3 py-2 transition-shadow outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500"
/>
{:else}
{:else if type === 'String'}
<input
type="text"
id={field}
@@ -95,6 +90,8 @@
value={getValue(field) ?? ''}
class="w-full rounded-lg border border-gray-300 px-3 py-2 transition-shadow outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500"
/>
{:else}
<TipTap name={field} initialContent={String(getValue(field) ?? '')} />
{/if}
</div>
{/each}