cc5ba4ed84
* 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 3a4511042da7083a52d67b58550b13d873dcbea5. * 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>
26 lines
551 B
Svelte
26 lines
551 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
import * as tr from "../lib/ftl";
|
|
import { bridgeCommand } from "../lib/bridgecommand";
|
|
</script>
|
|
|
|
<a
|
|
class="duplicate-link"
|
|
href="/#"
|
|
tabindex="-1"
|
|
on:click={() => bridgeCommand("dupes")}
|
|
>
|
|
{tr.editingShowDuplicates()}
|
|
</a>
|
|
|
|
<style lang="scss">
|
|
.duplicate-link {
|
|
color: var(--highlight-color);
|
|
text-align: center;
|
|
flex-grow: 1;
|
|
}
|
|
</style>
|