We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e3631 commit 78dd96fCopy full SHA for 78dd96f
src/index.tsx
@@ -353,6 +353,9 @@ const Toast = (props: ToastProps) => {
353
setSwipeOut(true);
354
setIsSwiped(false);
355
return;
356
+ } else {
357
+ toastRef.current?.style.setProperty('--swipe-amount-x', `0px`);
358
+ toastRef.current?.style.setProperty('--swipe-amount-y', `0px`);
359
}
360
361
setSwiping(false);
src/styles.css
@@ -248,8 +248,8 @@ html[dir='rtl'],
248
[data-sonner-toast][data-swiping='true']::before {
249
content: '';
250
position: absolute;
251
- left: -50%;
252
- right: -50%;
+ left: -100%;
+ right: -100%;
253
height: 100%;
254
z-index: -1;
255
0 commit comments