Skip to content

[bug]: Sonner from shadcn bug in positioning #6685

Open
@cielhaidir

Description

Describe the bug

If I use the Toaster from shadcn/sonner, its position is incorrect. The text overflows outside the toast background, and there is excessive offset in the text alignment. But if i use Toaster directly from sonner, it fix the problem

Sonner :
Image

Shadcn:

Image Image

Affected component/components

Sonner

How to reproduce

  1. Import and place Toaster from shadcn in layout.tsx
  2. Use toast in page

Codesandbox/StackBlitz link

No response

Logs

System Info

Chrome on macos sonoma

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions