fix(machine): keep the mouse pointer visible on the web demo #96

Merged
padreug merged 1 commit from fix/demo-cursor-visible into dev 2026-09-22 12:59:56 +00:00

View file

@ -33,12 +33,17 @@
padding: 0;
background: #000;
}
/* Kiosk-only: lock overflow and hide cursor */
/* Kiosk-only: lock overflow. The cursor is NOT hidden here — that is
src/style.css's `.kiosk` rule, which main.ts applies at runtime unless
VITE_DEMO_TAG is set. This block can't make that distinction (static
HTML, and the CSP forbids an inline script to read the env), so a
`cursor: none` here would also blank the pointer on the public web
demo, where people drive the kiosk with a mouse. One owner for cursor
hiding, and it is the one that knows whether this is a real machine. */
@media (min-width: 1024px) {
html,
body {
overflow: hidden;
cursor: none;
}
}
</style>