diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-06-03 18:19:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 18:19:40 -0400 |
commit | 6cc57d953df7f6201b45cbbb1a8e80dda4d1fa8a (patch) | |
tree | 8f744d3b7b17fe36fe9d18ebbb2ce5b8d9af4029 /ext/js | |
parent | c966d9b1ebb12386ac876d93f377fe3a470c6976 (diff) |
Settings modal updates (#2173)
* Move the "Add" button into the footer
* Scroll to the bottom when adding
* Move the Audio Sources add button
* Simplify, remove the (?) link
* Move "Add" button to footer
Diffstat (limited to 'ext/js')
-rw-r--r-- | ext/js/pages/settings/scan-inputs-controller.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/js/pages/settings/scan-inputs-controller.js b/ext/js/pages/settings/scan-inputs-controller.js index 855ccf9a..f6851eb2 100644 --- a/ext/js/pages/settings/scan-inputs-controller.js +++ b/ext/js/pages/settings/scan-inputs-controller.js @@ -116,6 +116,12 @@ class ScanInputsController { deleteCount: 0, items: [scanningInput] }]); + + // Scroll to bottom + const button = e.currentTarget; + const modalContainer = button.closest('.modal'); + const scrollContainer = modalContainer.querySelector('.modal-body'); + scrollContainer.scrollTop = scrollContainer.scrollHeight; } _addOption(index, scanningInput) { |