fix(camera): la animacion inline pisaba las hormigas de la clase

El boton conservaba animation:'none' inline fuera del estado requesting, y el
estilo inline gana a la clase: .velxio-ants quedaba con animationName none —
medido con getComputedStyle en staging. Inline solo mientras solicita permiso;
en el resto, undefined para que la clase anime.
This commit is contained in:
David Montero Crespo 2026-07-27 19:40:54 +02:00
parent 9d8cc0976f
commit a7015239b3
1 changed files with 4 additions and 1 deletions

View File

@ -125,10 +125,13 @@ export const CameraToggle: React.FC<CameraToggleProps> = ({ boardId }) => {
color,
fontSize: 13,
cursor: boardId ? 'pointer' : 'not-allowed',
// Inline only while requesting. 'none' here would OVERRIDE the
// .velxio-ants class animation (inline beats class), which is exactly
// how the ants shipped dead the first time.
animation:
status === 'requesting'
? 'velxio-pulse 1s ease-in-out infinite'
: 'none',
: undefined,
}}
>
<svg