diff --git a/src/components/Toast/Toast.tsx b/src/components/Toast/Toast.tsx index 319cf66503..0dc9d4b079 100644 --- a/src/components/Toast/Toast.tsx +++ b/src/components/Toast/Toast.tsx @@ -40,6 +40,7 @@ export function Toast({ ({type}), [type])}> = ({}) => { const {_} = useLingui() + const {gtPhone} = useBreakpoints() const [activeToast, setActiveToast] = useState() const [isExiting, setIsExiting] = useState(false) @@ -62,13 +63,17 @@ export const ToastContainer: React.FC = ({}) => { a.fixed, { left: a.px_xl.paddingLeft, + right: a.px_xl.paddingLeft, bottom: a.px_xl.paddingLeft, - width: web(`calc(100% - ${a.px_xl.paddingLeft * 2})`), - maxWidth: 380, ...(isExiting ? TOAST_ANIMATION_STYLES.exiting : TOAST_ANIMATION_STYLES.entering), }, + gtPhone && [ + { + maxWidth: 380, + }, + ], ]}>