Skip to content

Commit

Permalink
Error message box alignment fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kthorat-prog committed Apr 25, 2022
1 parent 083440c commit 284ebbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/cliapp/src/components/ErrorMessageComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { Message } from "primereact/message";
export function ErrorMessageComponent({ errorField, errorMessages: errorMessagesRow }) {
if(errorMessagesRow){
return (
<div>
<div style={{position:"absolute", paddingTop:"25px"}}>
<Message
severity={errorMessagesRow[errorField] ? errorMessagesRow[errorField].severity : ""}
text={errorMessagesRow[errorField] ? errorMessagesRow[errorField].message : ""}
style={{position:"absolute"}}
style={{position:"absolute", display: "inline-table"}}
/>
</div>
);
Expand Down

0 comments on commit 284ebbe

Please sign in to comment.