chore: Toast responsive width
This commit is contained in:
@@ -9,7 +9,11 @@ export interface ToastProps extends PropsWithChildren {
|
|||||||
|
|
||||||
export const Toast = ({ color, open, onClose, children }: ToastProps) => {
|
export const Toast = ({ color, open, onClose, children }: ToastProps) => {
|
||||||
return (
|
return (
|
||||||
<Snackbar sx={{ minWidth: '396px' }} open={open} onClose={onClose}>
|
<Snackbar
|
||||||
|
sx={{ width: (t) => `calc(100% - ${t.spacing(6)})`, maxWidth: '396px' }}
|
||||||
|
open={open}
|
||||||
|
onClose={onClose}
|
||||||
|
>
|
||||||
<Alert
|
<Alert
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
severity={color}
|
severity={color}
|
||||||
|
|||||||
Reference in New Issue
Block a user