mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Update NoteEditor.svelte to swap pin and html view. (#3821)
This commit is contained in:
parent
70b6cc9682
commit
1beb0cfa8c
1 changed files with 7 additions and 7 deletions
|
@ -710,6 +710,13 @@ the AddCards dialog) should be implemented in the user of this component.
|
||||||
{#if cols[index] === "dupe"}
|
{#if cols[index] === "dupe"}
|
||||||
<DuplicateLink />
|
<DuplicateLink />
|
||||||
{/if}
|
{/if}
|
||||||
|
<slot
|
||||||
|
name="field-state"
|
||||||
|
{field}
|
||||||
|
{index}
|
||||||
|
show={fields[index] === $hoveredField ||
|
||||||
|
fields[index] === $focusedField}
|
||||||
|
/>
|
||||||
{#if plainTextDefaults[index]}
|
{#if plainTextDefaults[index]}
|
||||||
<RichTextBadge
|
<RichTextBadge
|
||||||
show={!fieldsCollapsed[index] &&
|
show={!fieldsCollapsed[index] &&
|
||||||
|
@ -727,13 +734,6 @@ the AddCards dialog) should be implemented in the user of this component.
|
||||||
on:toggle={() => togglePlainTextInput(index)}
|
on:toggle={() => togglePlainTextInput(index)}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
<slot
|
|
||||||
name="field-state"
|
|
||||||
{field}
|
|
||||||
{index}
|
|
||||||
show={fields[index] === $hoveredField ||
|
|
||||||
fields[index] === $focusedField}
|
|
||||||
/>
|
|
||||||
</FieldState>
|
</FieldState>
|
||||||
</LabelContainer>
|
</LabelContainer>
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
|
|
Loading…
Reference in a new issue