fix: supprimer bouton ✕ de l'AnimationPlayer (fermeture via ▶ Animer)
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Économise une ligne sur mobile. onClose retiré de l'interface et du JSX. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -192,7 +192,6 @@ export default function App() {
|
|||||||
onPlay={animation.play}
|
onPlay={animation.play}
|
||||||
onPause={animation.pause}
|
onPause={animation.pause}
|
||||||
onSpeedChange={animation.setSpeed}
|
onSpeedChange={animation.setSpeed}
|
||||||
onClose={animation.deactivate}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ interface AnimationPlayerProps {
|
|||||||
onPlay: () => void;
|
onPlay: () => void;
|
||||||
onPause: () => void;
|
onPause: () => void;
|
||||||
onSpeedChange: (s: 1 | 2 | 4) => void;
|
onSpeedChange: (s: 1 | 2 | 4) => void;
|
||||||
onClose: () => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AnimationPlayer({
|
export function AnimationPlayer({
|
||||||
@@ -21,7 +20,6 @@ export function AnimationPlayer({
|
|||||||
onPlay,
|
onPlay,
|
||||||
onPause,
|
onPause,
|
||||||
onSpeedChange,
|
onSpeedChange,
|
||||||
onClose,
|
|
||||||
}: AnimationPlayerProps) {
|
}: AnimationPlayerProps) {
|
||||||
const frame = frames[currentIndex];
|
const frame = frames[currentIndex];
|
||||||
|
|
||||||
@@ -93,14 +91,6 @@ export function AnimationPlayer({
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Close */}
|
|
||||||
<button
|
|
||||||
onClick={onClose}
|
|
||||||
className="text-[#4b5563] hover:text-white transition-colors px-2 py-1 text-sm ml-2"
|
|
||||||
title="Quitter l'animation"
|
|
||||||
>
|
|
||||||
✕
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user