diff --git a/frontend/src/components/ui/ToastProvider.tsx b/frontend/src/components/ui/ToastProvider.tsx index 8b9e0d1..99da931 100644 --- a/frontend/src/components/ui/ToastProvider.tsx +++ b/frontend/src/components/ui/ToastProvider.tsx @@ -52,7 +52,6 @@ const ToastContext = React.createContext(null) const TOAST_LEAVE_MS = 220 const TOAST_SWIPE_DISMISS_PX = 96 const TOAST_SWIPE_LOCK_PX = 10 -const TOAST_SWIPE_MAX_ROTATION_DEG = 3 function iconFor(type: ToastType) { switch (type) { @@ -533,15 +532,8 @@ export function ToastProvider({ ? Math.max(0.985, 1 - absDx / 1600) : 1 - const dragRotate = swipe.dragging - ? Math.max( - -TOAST_SWIPE_MAX_ROTATION_DEG, - Math.min(TOAST_SWIPE_MAX_ROTATION_DEG, swipe.dx / 40) - ) - : 0 - const swipeStyle: React.CSSProperties = { - transform: `translateX(${swipe.dx}px) scale(${dragScale}) rotate(${dragRotate}deg)`, + transform: `translateX(${swipe.dx}px) scale(${dragScale})`, opacity: dragOpacity, transition: swipe.dragging ? 'none'