Toggle: ensure opened accordion is in view

Usability improvement to make sure that the opened `<details>` element is visible to the user.

Fixes #1089.