fix: style of copy alert

This commit is contained in:
RaktimaNXG
2024-08-13 16:24:20 +05:30
parent 1d5d713854
commit c3d039fe45
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -341,10 +341,7 @@ function UserProfile() {
) : (
<div className="flex justify-center items-center w-full relative">
{isAlert && (
<Alert
className="z-[1000] fixed top-[10%] transform text-sm py-[.75rem] px-[1.25rem]"
type={isAlert.type}
>
<Alert className="z-[1000] fixed top-[10%]" type={isAlert.type}>
{isAlert.message}
</Alert>
)}
+1 -1
View File
@@ -25,7 +25,7 @@ const Alert = ({ children, type, className }) => {
: "z-[1000] fixed top-20 left-1/2 transform -translate-x-1/2 text-sm"
} `}
>
<div className={`op-alert ${textcolor}`}>
<div className={`op-alert ${textcolor} flex items-center`}>
<span>{children}</span>
</div>
</div>