Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: toast-center is not actually center #3702

Open
g1eny0ung opened this issue Mar 20, 2025 · 3 comments
Open

bug: toast-center is not actually center #3702

g1eny0ung opened this issue Mar 20, 2025 · 3 comments
Assignees

Comments

@g1eny0ung
Copy link

g1eny0ung commented Mar 20, 2025

Reproduction URL (Required)

https://play.tailwindcss.com/gi1wZn98Dg

What version of daisyUI are you using?

v5.0.6

Which browsers are you seeing the problem on?

Chrome

Describe your issue

In this line:

@apply fixed start-auto end-0 top-auto bottom-0 m-4 flex min-w-fit flex-col gap-2 bg-transparent whitespace-nowrap;
, the margins causes the position to be actually uncentered.

Personally, I don't think the margin should be added here, and it might be better to leave it up to users? 🧐 A component is only responsible for itself, the outer margin should not be something that should be managed by it.

Copy link

Thank you @g1eny0ung for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@saadeghi saadeghi self-assigned this Mar 20, 2025
@g1eny0ung
Copy link
Author

Hi @saadeghi, I looked at the changes, and I don't think these changes fixed this issue. The problem is related to toast, not alert.

@saadeghi saadeghi reopened this Mar 25, 2025
@saadeghi
Copy link
Owner

I see 👍
Will be fixed soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants