Skip to content

Commit

Permalink
Merge pull request #59 from tuzkituan/main
Browse files Browse the repository at this point in the history
v1.2.13
  • Loading branch information
tuzkituan authored Apr 17, 2024
2 parents 0e82666 + 3faf930 commit 9379ca9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/components/toast/toast.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export const ToastProvider = (props: ToastProviderProps) => {
const toastContainer = twMerge(
theme.toastsContainer({
isTopOrBottom: position === "top" || position === "bottom",
isRighty: position.includes("right"),
isLefty: position.includes("left"),
bottom: position.includes("bottom"),
top: position.includes("top"),
left: !position.includes("right"),
Expand Down
8 changes: 8 additions & 0 deletions lib/customization/styles/components/toast.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ const toastsContainer = cva(
true: ["zn-mx-auto"],
false: [],
},
isRighty: {
true: ["zn-items-end"],
false: [],
},
isLefty: {
true: ["zn-items-start"],
false: [],
},
},
}
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeni-ui",
"private": false,
"version": "1.2.12-beta",
"version": "1.2.13-beta",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down

0 comments on commit 9379ca9

Please sign in to comment.