Move duplicate link into its own slot

to center it between name/description and field-state.
This commit is contained in:
Matthias M 2021-12-10 18:34:54 +01:00
parent 027c8595a7
commit 3a4511042d
2 changed files with 5 additions and 1 deletions

View file

@ -84,6 +84,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<LabelDescription description={field.description} />
{/if}
</span>
<slot name="duplicate-link" />
<FieldState><slot name="field-state" /></FieldState>
</LabelContainer>
<EditingArea

View file

@ -299,10 +299,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
? "var(--flag1-bg)"
: "transparent"}
>
<svelte:fragment slot="field-state">
<svelte:fragment slot="duplicate-link">
{#if cols[index] === "dupe"}
<DuplicateLink />
{/if}
</svelte:fragment>
<svelte:fragment slot="field-state">
<RichTextBadge bind:off={richTextsHidden[index]} />
<PlainTextBadge bind:off={plainTextsHidden[index]} />
{#if stickies}