search and input panels: fix row movement options
As described in #2565 (closed), the "Move Up" and "Move Down" popover menu options are currently displayed for all search and input panel rows in the lists, doing nothing if clicked when a row is at the top or bottom of the list respectively. This commit adds checks when creating and moving the search and input panel rows and disables these options at the top and bottom of the lists respectively, removing a useless menu option.
Fixes #2565 (closed)