From e059aab1844e7ff04e16912e16cd7d3c9beaf7ad Mon Sep 17 00:00:00 2001
From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com>
Date: Wed, 7 Dec 2022 06:31:37 +0100
Subject: [PATCH] Improve Select component and add it back to Change Notetype
screen (#2239)
* Do not include oldIdx in Select change event
I included it due to confusion about the variable names in the Change Notetype components.
* Remove redundant on:change listener from NotetypeSelector
* Use Select component in Change Notetype MapperRow (again)
* Remove redundant --cols and --col-size definitions
Bootstrap divides rows into columns of equal width by default.
* Add highlight to active DropdownItem
* Remove bootstrap dropdown item styling
* Fix JS error on dropdown accept action
cause: When closing the dropdown, buttonRef was removed before the callback in setTimeout was run.
---
ts/change-notetype/MapperRow.svelte | 27 ++++++++++----------
ts/change-notetype/NotetypeSelector.svelte | 6 ++---
ts/components/DropdownItem.svelte | 29 +++++++++++++++++-----
ts/components/Select.svelte | 7 ++++--
ts/components/SelectOption.svelte | 6 ++++-
ts/deck-options/ConfigSelector.svelte | 2 +-
ts/deck-options/deck-options-base.scss | 1 -
ts/editor/editor-base.scss | 1 -
8 files changed, 50 insertions(+), 29 deletions(-)
diff --git a/ts/change-notetype/MapperRow.svelte b/ts/change-notetype/MapperRow.svelte
index 9afe323ad..d663fd7e0 100644
--- a/ts/change-notetype/MapperRow.svelte
+++ b/ts/change-notetype/MapperRow.svelte
@@ -5,6 +5,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-
-