Skip to content

Commit

Permalink
Merge pull request #441 from GurukiranP/ES-296
Browse files Browse the repository at this point in the history
[ES-296]
  • Loading branch information
anshulv1401 authored Oct 19, 2023
2 parents b9372d7 + 6c7b608 commit 72e54f5
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions oidc-ui/src/components/OtpVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,20 @@ export default function OtpVerify({
setStatus({ state: states.ERROR, msg: "" });
}
};

let styles = {
width: "40px",
height: "40px",
margin: "0 5px",
border: "",
borderBottom: "2px solid #0284c7",
color: "#0284c7"
};

if(window.screen.availWidth <= 375) {
styles = {...styles, width: "2em"}
}

return (
<>
<form className="mt-2 space-y-2" onSubmit={handleSubmit}>
Expand Down Expand Up @@ -246,14 +259,7 @@ export default function OtpVerify({
type="numeric"
inputMode="number"
style={{ padding: "5px 0px" }}
inputStyle={{
width: "40px",
height: "40px",
margin: "0 5px",
border: "",
borderBottom: "2px solid #0284c7",
color: "#0284c7",
}}
inputStyle={styles}
inputFocusStyle={{ borderBottom: "2px solid #075985" }}
onComplete={(value, index) => {
//TO handle case when user pastes OTP
Expand Down

0 comments on commit 72e54f5

Please sign in to comment.