mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Move duplicate link into its own slot
to center it between name/description and field-state.
This commit is contained in:
parent
027c8595a7
commit
3a4511042d
2 changed files with 5 additions and 1 deletions
|
@ -84,6 +84,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<LabelDescription description={field.description} />
|
<LabelDescription description={field.description} />
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
|
<slot name="duplicate-link" />
|
||||||
<FieldState><slot name="field-state" /></FieldState>
|
<FieldState><slot name="field-state" /></FieldState>
|
||||||
</LabelContainer>
|
</LabelContainer>
|
||||||
<EditingArea
|
<EditingArea
|
||||||
|
|
|
@ -299,10 +299,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
? "var(--flag1-bg)"
|
? "var(--flag1-bg)"
|
||||||
: "transparent"}
|
: "transparent"}
|
||||||
>
|
>
|
||||||
<svelte:fragment slot="field-state">
|
<svelte:fragment slot="duplicate-link">
|
||||||
{#if cols[index] === "dupe"}
|
{#if cols[index] === "dupe"}
|
||||||
<DuplicateLink />
|
<DuplicateLink />
|
||||||
{/if}
|
{/if}
|
||||||
|
</svelte:fragment>
|
||||||
|
|
||||||
|
<svelte:fragment slot="field-state">
|
||||||
<RichTextBadge bind:off={richTextsHidden[index]} />
|
<RichTextBadge bind:off={richTextsHidden[index]} />
|
||||||
<PlainTextBadge bind:off={plainTextsHidden[index]} />
|
<PlainTextBadge bind:off={plainTextsHidden[index]} />
|
||||||
{#if stickies}
|
{#if stickies}
|
||||||
|
|
Loading…
Reference in a new issue