anki/ts/components
Matthias Metelka 371f731e30
Editor Field Descriptions (#1476)
* Add description input to fields dialog

QLineEdit seems like the best option, as it saves space and motivates users to keep their descriptions concise.

* Add setDescriptions to note initialization script

Went for the extra function instead of including it in setFields to prevent potential add-on breakages.

* Add tooltip next to field name if description is set

* Refactor code according to suggestions

Set default tooltip placement to right instead of bottom

Use .get() for fld["description"]

Fix tab order in fields dialog

Swap out abbreviation "desc" for full length name to keep consistency

* Update Protobuf and Rust for description

Add description to notetypes.proto and schema11

Co-authored-by: RumovZ <RumovZ@users.noreply.github.com>

* Fix tooltips not updating with description

Remove redundant variable tooltipOptions

Update previousTooltip within reactive function

* Move LabelDescription out of LabelName

Co-authored-by: Henrik Giesel <hgiesel@users.noreply.github.com>

* Decrease icon size and fix alignment

Co-Authored-By: Henrik Giesel <hengiesel@gmail.com>

* the new key needs to be cleared from fields, not the notetype itself

Co-authored-by: RumovZ <RumovZ@users.noreply.github.com>
Co-authored-by: Henrik Giesel <hengiesel@gmail.com>
Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2021-11-06 09:42:48 +10:00
..
Absolute.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
Badge.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
BUILD.bazel pass ts deps into most Svelte packages; remove redundant deps 2021-10-18 12:44:31 +10:00
ButtonDropdown.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
ButtonGroup.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
ButtonGroupItem.svelte Fix DeckOptions toolbar having wrong margins and no flex-grow (#1464) 2021-10-28 19:37:52 +10:00
buttons.ts Fix Float buttons in rtl 2021-09-06 21:15:37 +10:00
ButtonToolbar.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
ColorPicker.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
Container.svelte Fix DeckOptions toolbar having wrong margins and no flex-grow (#1464) 2021-10-28 19:37:52 +10:00
context-keys.ts disabledKey => fieldFocusedKey 2021-07-05 18:15:03 +02:00
Detachable.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
dropdown.ts handle changed aria-expanded typing 2021-09-29 12:20:27 +10:00
DropdownDivider.svelte WIP: Use our components in deckoptions sticky bar 2021-05-18 16:32:29 +02:00
DropdownItem.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
DropdownMenu.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
helpers.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
IconButton.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
IconConstrain.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
identifier.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
Item.svelte Fix DeckOptions toolbar having wrong margins and no flex-grow (#1464) 2021-10-28 19:37:52 +10:00
LabelButton.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
registration.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
Section.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
SelectButton.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
SelectOption.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
Shortcut.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
Spacer.svelte Space out Sticky Bottom with Spacer component 2021-09-09 15:37:58 +02:00
StickyFooter.svelte Fix DeckOptions toolbar having wrong margins and no flex-grow (#1464) 2021-10-28 19:37:52 +10:00
StickyHeader.svelte Fix DeckOptions toolbar having wrong margins and no flex-grow (#1464) 2021-10-28 19:37:52 +10:00
tsconfig.json update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
WithContext.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
WithDropdown.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
WithShortcut.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
WithState.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
WithTooltip.svelte Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00