From 5fa850703f6274acc221f75d430decdf6a970000 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sat, 29 May 2021 13:06:17 +0200 Subject: [PATCH] Implement EnumSelectorRow and StepsInputRow --- ts/deckoptions/Col.svelte | 8 ++- ts/deckoptions/EnumSelectorRow.svelte | 30 ++++++++ ts/deckoptions/LapseOptions.svelte | 99 +++++++++---------------- ts/deckoptions/NewOptions.svelte | 100 +++++++++----------------- ts/deckoptions/SpinBoxRow.svelte | 5 +- ts/deckoptions/StepsInputRow.svelte | 26 +++++++ 6 files changed, 132 insertions(+), 136 deletions(-) create mode 100644 ts/deckoptions/EnumSelectorRow.svelte create mode 100644 ts/deckoptions/StepsInputRow.svelte diff --git a/ts/deckoptions/Col.svelte b/ts/deckoptions/Col.svelte index 3daa87d87..05762367c 100644 --- a/ts/deckoptions/Col.svelte +++ b/ts/deckoptions/Col.svelte @@ -2,10 +2,12 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> - + + + + + + + + + + + diff --git a/ts/deckoptions/LapseOptions.svelte b/ts/deckoptions/LapseOptions.svelte index 37bf3aed4..e21e4da50 100644 --- a/ts/deckoptions/LapseOptions.svelte +++ b/ts/deckoptions/LapseOptions.svelte @@ -4,16 +4,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> - - - {tr.deckConfigRelearningSteps()} - - 2 ? "sm" : undefined} size={5}> - - - - + + {tr.deckConfigRelearningSteps()} + - - - {tr.schedulingMinimumInterval()} - - - - - - + + {tr.schedulingMinimumInterval()} + - - - {tr.schedulingLeechThreshold()} - - - - - - + + {tr.schedulingLeechThreshold()} + - - - {tr.schedulingLeechAction()} - - - - - - + + {tr.schedulingLeechAction()} + diff --git a/ts/deckoptions/NewOptions.svelte b/ts/deckoptions/NewOptions.svelte index 4ff65a254..983e3ebee 100644 --- a/ts/deckoptions/NewOptions.svelte +++ b/ts/deckoptions/NewOptions.svelte @@ -4,16 +4,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> - - - {tr.deckConfigLearningSteps()} - - - - - - + + {tr.deckConfigLearningSteps()} + - - - {tr.schedulingGraduatingInterval()} - - - - - - + + {tr.schedulingGraduatingInterval()} + - - - {tr.schedulingEasyInterval()} - - - - - - + + {tr.schedulingEasyInterval()} + - - - {tr.deckConfigNewInsertionOrder()} - - - - - - + + {tr.deckConfigNewInsertionOrder()} + diff --git a/ts/deckoptions/SpinBoxRow.svelte b/ts/deckoptions/SpinBoxRow.svelte index b55032386..c1650a832 100644 --- a/ts/deckoptions/SpinBoxRow.svelte +++ b/ts/deckoptions/SpinBoxRow.svelte @@ -12,6 +12,7 @@ export let value: any; export let defaultValue: any; + export let min = 0; export let markdownTooltip: string; @@ -20,7 +21,7 @@ - - + + diff --git a/ts/deckoptions/StepsInputRow.svelte b/ts/deckoptions/StepsInputRow.svelte new file mode 100644 index 000000000..c11b11edb --- /dev/null +++ b/ts/deckoptions/StepsInputRow.svelte @@ -0,0 +1,26 @@ + + + + + + + + + + + +