solid-sonner icon indicating copy to clipboard operation
solid-sonner copied to clipboard

Single toast positioning doesn't work correctly

Open zwelhtetyan opened this issue 1 year ago • 1 comments

Screenshot 2025-01-14 at 2 04 33 PM

The specific positioning of each toaster conflicts with the common position from the parent toaster.

const App: ParentComponent = (props) => {
  return (
    <main>
      <Toaster position="bottom-right" />
      <Test />
    </main>
  );
};
const Test = () => {
  onMount(() => {
    toast("Hello, sonner!", {
      duration: Infinity,
      position: "top-right",
    });
  });

return;
}

zwelhtetyan avatar Jan 14 '25 07:01 zwelhtetyan

Same issue (tested on mobil with Safari iOs) <Toaster position="top-center" /> works but

toast("test", { position: "top-center"}) doesn't work: the toast is hidden below the top bar and the animation is from the bottom instead of the top.

arnaudbzn avatar Mar 18 '25 08:03 arnaudbzn