Skip to content

fix: remove default offset #26

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

Merged
merged 3 commits into from
Aug 6, 2023

Conversation

wobsoriano
Copy link
Contributor

Default offset is 32px using the VIEWPORT_OFFSET variable:

Screenshot 2023-08-05 at 10 46 09 PM

It was never used, since vue-sonner v0.4.0 has a 0 initial value for the offset prop:

Screenshot 2023-08-05 at 10 47 37 PM

If you look at the demo website, there is no offset between the browser and the toast component:

Screenshot 2023-08-05 at 10 45 14 PM

This PR removes the default offset and fixes some types.

@vercel
Copy link

vercel bot commented Aug 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vue-sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2023 5:52am

Copy link
Owner

@xiaoluoboding xiaoluoboding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xiaoluoboding xiaoluoboding merged commit 9402286 into xiaoluoboding:main Aug 6, 2023
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

Successfully merging this pull request may close these issues.

2 participants