Usa screenshot di pagina come sfondo heatmap al posto dell’iframe.

Cattura periodica client-side (con consenso), storage ActiveStorage e overlay allineato all’immagine.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-20 23:14:47 +02:00
co-authored by Cursor
parent 406a90ae5b
commit 70fccc493e
25 changed files with 442 additions and 73 deletions
+17 -11
View File
@@ -962,22 +962,29 @@ body.admin-body {
.admin-heatmap-stage {
position: relative;
overflow: hidden;
overflow: auto;
width: 100%;
min-height: 70vh;
max-height: 85vh;
border: 1px solid var(--card-border);
border-radius: 10px;
background: #111;
background: #d7dbe2;
}
.admin-heatmap-frame {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
.admin-heatmap-scaler {
position: relative;
transform-origin: top left;
background: #fff;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.admin-heatmap-shot {
display: block;
width: 100%;
height: auto;
vertical-align: top;
pointer-events: none;
user-select: none;
}
.admin-heatmap-fallback {
@@ -1003,9 +1010,8 @@ body.admin-body {
.admin-heatmap-overlay {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 1;
pointer-events: none;
}