From 6cc57d953df7f6201b45cbbb1a8e80dda4d1fa8a Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 3 Jun 2022 18:19:40 -0400 Subject: 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 --- ext/js/pages/settings/scan-inputs-controller.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/js/pages/settings') 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) { -- cgit v1.2.3