Rende il CRM comodo da usare anche da cellulare.
CI / scan_ruby (push) Failing after 11m43s
CI / scan_js (push) Successful in 11m18s
CI / lint (push) Failing after 11m56s

Aggiunge navigazione mobile dedicata e trasforma le principali liste operative in layout più leggibili e facili da toccare.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 10:55:50 +02:00
co-authored by Cursor
parent d98c3e87a8
commit 0e8730b889
24 changed files with 683 additions and 295 deletions
@@ -0,0 +1,35 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = ["panel"]
connect() {
this.boundKey = this.onKey.bind(this)
document.addEventListener("keydown", this.boundKey)
}
disconnect() {
document.removeEventListener("keydown", this.boundKey)
document.body.classList.remove("overflow-hidden")
}
toggle(event) {
event?.preventDefault()
event?.stopPropagation()
this.panelTarget.classList.contains("hidden") ? this.show() : this.hide()
}
show() {
this.panelTarget.classList.remove("hidden")
document.body.classList.add("overflow-hidden")
}
hide() {
this.panelTarget.classList.add("hidden")
document.body.classList.remove("overflow-hidden")
}
onKey(event) {
if (event.key === "Escape") this.hide()
}
}