diff --git a/src/lib/components/ChecklistSection.svelte b/src/lib/components/ChecklistSection.svelte index fa70bb2..b00856a 100644 --- a/src/lib/components/ChecklistSection.svelte +++ b/src/lib/components/ChecklistSection.svelte @@ -1,5 +1,6 @@
@@ -132,7 +168,7 @@
- {#each cl.items as item} + {#each cl.items as item, idx}
{#if canEdit} {#if canEdit} - +
+ + + +
{/if}
{/each} diff --git a/src/lib/utils/fractional-index.ts b/src/lib/utils/fractional-index.ts index f035ac0..1acaede 100644 --- a/src/lib/utils/fractional-index.ts +++ b/src/lib/utils/fractional-index.ts @@ -8,8 +8,8 @@ * https://observablehq.com/@dgreensp/implementing-fractional-indexing */ -const BASE_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; -const MIDPOINT = 'N'; // roughly middle of uppercase range +const BASE_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; +const MIDPOINT = 'V'; // roughly middle of the charset /** * Generate a position string between `before` and `after`.