Skip to content

Commit

Permalink
MOSIP-332947: Fixed error message issue in RTL (#433)
Browse files Browse the repository at this point in the history
Signed-off-by: Anil_Kumar_Majji <[email protected]>
  • Loading branch information
Anil-kumar-Majji authored Jun 10, 2024
1 parent f14fea0 commit 45c9cd2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function PartnerCertificatesList() {
{dataLoaded && (
<>
{errorMsg && (
<div className="flex justify-end max-w-7xl absolute right-0">
<div className={`flex justify-end max-w-7xl absolute ${isLoginLanguageRTL ? "left-0" :"right-0"}`}>
<div className="flex justify-between items-center max-w-96 min-h-14 min-w-72 bg-[#C61818] rounded-xl p-4">
<ErrorMessage errorCode={errorCode} errorMessage={errorMsg} clickOnCancel={cancelErrorMsg}></ErrorMessage>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pmp-reactjs-ui/src/pages/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function Dashboard() {
{dataLoaded && (
<>
{errorMsg && (
<div className="flex justify-end max-w-7xl mt-2 absolute right-2">
<div className={`flex justify-end max-w-7xl mt-2 absolute ${isLoginLanguageRTL ?"left-2" :"right-2"}`}>
<div className="flex justify-between items-center max-w-96 min-h-14 min-w-72 bg-[#C61818] rounded-xl p-4">
<ErrorMessage errorCode={errorCode} errorMessage={errorMsg} clickOnCancel={cancelErrorMsg}></ErrorMessage>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pmp-reactjs-ui/src/pages/policies/Policies.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function Policies() {
{dataLoaded && (
<>
{errorMsg && (
<div className="flex justify-end max-w-7xl absolute right-0">
<div className={`flex justify-end max-w-7xl absolute ${isLoginLanguageRTL ? "left-0" :"right-0"}`}>
<div className="flex justify-between items-center max-w-96 min-h-14 min-w-72 bg-[#C61818] rounded-xl p-3 z-10">
<ErrorMessage errorCode={errorCode} errorMessage={errorMsg} clickOnCancel={cancelErrorMsg}></ErrorMessage>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pmp-reactjs-ui/src/pages/policies/RequestPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function RequestPolicy() {
{dataLoaded && (
<>
{errorMsg && (
<div className="flex justify-end max-w-7xl absolute right-0">
<div className={`flex justify-end max-w-7xl absolute ${isLoginLanguageRTL? "left-0" : "right-0"}`}>
<div className="flex justify-between items-center max-w-[400px] min-h-14 min-w-72 bg-[#C61818] rounded-xl p-3">
<ErrorMessage errorCode={errorCode} errorMessage={errorMsg} clickOnCancel={cancelErrorMsg}></ErrorMessage>
</div>
Expand Down

0 comments on commit 45c9cd2

Please sign in to comment.