Cleanup and scroll into view when expanding

This commit is contained in:
Andy Smith
2025-12-15 16:03:16 -06:00
parent 0f1ee03edb
commit a3723ef0d2
2 changed files with 8 additions and 4 deletions
@@ -110,6 +110,10 @@ export default class extends Controller {
column.classList.remove(this.collapsedClass)
column.classList.add(this.expandedClass)
localStorage.setItem(key, true)
if (window.matchMedia('(max-width: 639px)').matches) {
column.scrollIntoView({ behavior: "smooth", inline: "nearest" })
}
}
#buttonFor(column) {