Anki/ts/lib/components
Arthur Milchior 6c37d5fc70
Add percentage to FSRS spinner (#3679)
* Add percentage to FSRS spinner

This commit add a percentage option in SpinBox and SpinBoxFloatRow, set to False
by default.

If it's true, a percent symbol is added at the end of the line before
the increase/decrease button.

While the value is represented as a percentage without decimal places,
the internal representation is not changed. Which mean that a
multiplier must used to compute the string value, indicate to the
input field the min, max and step, and when updating the result.

* Remove unsightly percentage sign, and update historical retention too

https://github.com/ankitects/anki/pull/3679#issuecomment-2579636981

---------

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2025-01-25 18:17:02 +11:00
..
Absolute.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
BackendProgressIndicator.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
Badge.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ButtonGroup.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ButtonGroupItem.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ButtonToolbar.svelte Clean up #3167 (#3186) 2024-05-01 20:08:19 +10:00
CheckBox.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Col.svelte Update dprint (#3376) 2024-08-22 18:24:56 +07:00
Collapsible.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
ConfigInput.svelte Fix deck config input's background color regression (#3258) 2024-06-28 18:52:51 +07:00
Container.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
context-keys.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
DropdownDivider.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
DropdownItem.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
DynamicallySlottable.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
EnumSelector.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
EnumSelectorRow.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ErrorPage.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
FloatingArrow.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
helpers.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
HelpModal.svelte Fix deck options button twitching on hover (#3623) 2024-12-09 16:12:36 +11:00
HelpSection.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Icon.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
IconButton.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
IconConstrain.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
icons.ts Svg icon (#3135) 2024-04-24 02:37:31 +01:00
Item.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Label.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
LabelButton.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Popover.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Portal.svelte Fix editor width changing as tag completions shown (#3574) 2024-11-18 01:11:21 +10:00
RenderChildren.svelte Fix editor width changing as tag completions shown (#3574) 2024-11-18 01:11:21 +10:00
resizable.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
RevertButton.svelte Remove infinite spinning icon for reset parameters dropdown and add a question mark (#3603) 2024-12-07 00:41:34 +11:00
Row.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ScrollArea.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
Select.svelte Svg icon (#3135) 2024-04-24 02:37:31 +01:00
SelectOption.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
SettingTitle.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Shortcut.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Spacer.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
SpinBox.svelte Add percentage to FSRS spinner (#3679) 2025-01-25 18:17:02 +11:00
StickyContainer.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Switch.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
SwitchRow.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
TitledContainer.svelte Improve and unify web dialog styling (#3167) 2024-05-01 17:49:57 +10:00
types.ts Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
VirtualTable.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
WithContext.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
WithFloating.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
WithOverlay.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
WithState.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
WithTooltip.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00