mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00

* Add "Show duplicates" to LabelContainer
* Avoid bubbling down the duplicate logic into EditorField
* Move duplicate link into its own slot
to center it between name/description and field-state.
* Revert "Move duplicate link into its own slot"
This reverts commit 3a4511042d
.
* Justify dupes within FieldState
to achieve the same result as before while avoiding additional logic within EditorField.
Co-Authored-By: Henrik Giesel <hengiesel@gmail.com>
19 lines
397 B
Svelte
19 lines
397 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<span class="field-state justify-content-end">
|
|
<slot />
|
|
</span>
|
|
|
|
<style lang="scss">
|
|
.field-state {
|
|
display: flex;
|
|
justify-content: flex;
|
|
flex-grow: 1;
|
|
|
|
& > :global(*) {
|
|
margin-left: 2px;
|
|
}
|
|
}
|
|
</style>
|