XWIKI-10514: Improve the display of the Tree View on Flamingo.

* Also fix the input field that shows the selected page name.

(cherry picked from commit c30b1f6e8995e20b0c6e55e62deced8426b37428)