mirror of
https://github.com/usememos/memos.git
synced 2025-12-17 22:28:52 +08:00
fixed style a bit
This commit is contained in:
parent
6aaad51546
commit
9d8b30ab85
2 changed files with 8 additions and 1 deletions
|
|
@ -131,7 +131,13 @@ const MemoActionMenu = observer((props: Props) => {
|
||||||
["state"],
|
["state"],
|
||||||
);
|
);
|
||||||
toast.dismiss(tToast.id); // close the toast
|
toast.dismiss(tToast.id); // close the toast
|
||||||
toast.success(t("message.undo-successful")); // optional success toast
|
toast.custom(
|
||||||
|
(tToast) => (
|
||||||
|
<div className="flex items-center gap-3 ml-auto bg-primary dark:bg-primary px-2 py-1 rounded-xl shadow text-sm">
|
||||||
|
<span className="text-background">{t("message.undo-successful")}</span>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
); // optional success toast
|
||||||
memoUpdatedCallback();
|
memoUpdatedCallback();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,7 @@
|
||||||
"remove-completed-task-list-items-successfully": "The removal was successful",
|
"remove-completed-task-list-items-successfully": "The removal was successful",
|
||||||
"restored-successfully": "Restored successfully",
|
"restored-successfully": "Restored successfully",
|
||||||
"succeed-copy-link": "Link copied successfully.",
|
"succeed-copy-link": "Link copied successfully.",
|
||||||
|
"undo-successful": "Undo successful",
|
||||||
"update-succeed": "Update succeeded",
|
"update-succeed": "Update succeeded",
|
||||||
"user-not-found": "User not found"
|
"user-not-found": "User not found"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue