diff --git a/stylesheets/components/ToastManager.scss b/stylesheets/components/ToastManager.scss index 65b910b636..fc801a6321 100644 --- a/stylesheets/components/ToastManager.scss +++ b/stylesheets/components/ToastManager.scss @@ -3,20 +3,21 @@ @use '../variables'; -.ToastManager { - display: flex; - flex-direction: column; - pointer-events: none; - - gap: 16px; - +.ToastManagerContainer { // Sync inner width with left pane position: fixed; width: inherit; bottom: 0; z-index: variables.$z-index-toast; + pointer-events: none; +} - padding: 16px; +.ToastManager { + display: flex; + flex-direction: column-reverse; + gap: 16px; + margin: 16px; + pointer-events: none; & * { pointer-events: auto; @@ -43,6 +44,7 @@ } .ToastManager--narrow-sidebar.ToastManager--composition-area-visible { + position: fixed; inset-inline-start: 0; width: 100%; align-items: center; @@ -56,9 +58,9 @@ } .ToastManager--megaphones { - padding: 12px; + margin: 12px; } .ToastManager--megaphones.ToastManager--narrow-sidebar { - padding: 10px; + margin: 10px; } diff --git a/ts/components/ToastManager.dom.tsx b/ts/components/ToastManager.dom.tsx index 833c357591..8179dceb4b 100644 --- a/ts/components/ToastManager.dom.tsx +++ b/ts/components/ToastManager.dom.tsx @@ -1026,17 +1026,7 @@ export function ToastManager(props: PropsType): React.JSX.Element { const toast = renderToast(props); return ( - <> - {megaphone && ( -