From 78fba99c766e89b765deda35faac5c5816b9ba1f Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Wed, 26 Aug 2026 08:18:45 +0000 Subject: [PATCH] fix: list-style preview shows every level; rename the multilevel toggle The preview drew a fixed three lines, and the toggle's label ("Show all levels") read as a preview control when it switches chained numbering. Preview now renders one line per defined level and scrolls past six; the label says "Multilevel numbering (1, 1.1, 1.2.1)", matching the numbering dropdown's notation. --- src/lib/components/StyleManagerDialog.svelte | 12 +++++++----- src/lib/i18n/locales/de.ts | 2 +- src/lib/i18n/locales/en.ts | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/lib/components/StyleManagerDialog.svelte b/src/lib/components/StyleManagerDialog.svelte index 2eff47d..90b736b 100644 --- a/src/lib/components/StyleManagerDialog.svelte +++ b/src/lib/components/StyleManagerDialog.svelte @@ -136,8 +136,6 @@ return formatOrdinal(def?.startAt ?? 1, type.numFormat) + type.numSuffix; } - const PREVIEW_LEVELS = 3; - const BORDER_WIDTHS = ['none', '0.5', '0.75', '1', '1.5', '2.25']; // The three border controls; the inner ones fall back to the shared innerBorder. type BorderKey = 'border' | 'innerBorderH' | 'innerBorderV'; @@ -527,9 +525,9 @@
{#if isList} - +
- {#each Array(PREVIEW_LEVELS) as _, d} + {#each lStyle.levels as _, d}
{levelMarker(lStyle, d + 1)} @@ -855,7 +853,11 @@