Skip to content

Commit

Permalink
[ES-296] Fixed dashed line shifting to the next line in Enter OTP scr…
Browse files Browse the repository at this point in the history
…een for one of the mobile device(Redmi 6A)

Signed-off-by: GurukiranP <[email protected]>
  • Loading branch information
gk-4VII committed Oct 12, 2023
1 parent e8b8a0f commit 6c7b608
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 6c7b608

Please sign in to comment.