Skip to content

Commit

Permalink
added position attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
opensrc0 committed Mar 5, 2024
1 parent b6debdb commit 38bab9a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion __app/component/Scanner/CameraClose.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function CameraClose({
left,
right,
color,
position,
}) {
return (
<div
Expand All @@ -19,7 +20,7 @@ function CameraClose({
right,
zIndex,
color,
position: 'absolute',
position,
}}
onClick={onClose}
onKeyDown={(ev) => ev.key === 'Enter' && onClose()}
Expand All @@ -41,6 +42,7 @@ CameraClose.defaultProps = {
bottom: '25%',
left: 'auto',
right: '72%',
position: 'absolute',
};

export default CameraClose;
4 changes: 3 additions & 1 deletion __app/component/Scanner/CameraFacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function CameraFacing({
left,
right,
color,
position,
}) {
return (
<div
Expand All @@ -19,7 +20,7 @@ function CameraFacing({
right,
zIndex,
color,
position: 'absolute',
position,
}}
onClick={toggleCamera}
onKeyDown={(ev) => ev.key === 'Enter' && toggleCamera()}
Expand All @@ -41,6 +42,7 @@ CameraFacing.defaultProps = {
bottom: '25%',
left: 'auto',
right: '37%',
position: 'absolute',
};

export default CameraFacing;
4 changes: 3 additions & 1 deletion __app/component/Scanner/CameraFlash.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function CameraFlash({
left,
right,
color,
position,
}) {
return (
<div
Expand All @@ -19,7 +20,7 @@ function CameraFlash({
right,
zIndex,
color,
position: 'absolute',
position,
}}
onClick={toggleFlash}
onKeyDown={(ev) => ev.key === 'Enter' && toggleFlash()}
Expand All @@ -41,6 +42,7 @@ CameraFlash.defaultProps = {
bottom: '25%',
left: 'auto',
right: '5%',
position: 'absolute',
};

export default CameraFlash;
4 changes: 3 additions & 1 deletion __app/component/Scanner/PhoneGallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function PhoneGallery({
left,
right,
color,
position,
}) {
const onSelectGalleryImage = async (event) => {
const file = event.target.files[0];
Expand Down Expand Up @@ -54,7 +55,7 @@ function PhoneGallery({
right,
zIndex,
color,
position: 'absolute',
position,
}}
>
{children || 'Gallery'}
Expand Down Expand Up @@ -93,6 +94,7 @@ PhoneGallery.defaultProps = {
bottom: '18%',
left: 'auto',
right: '64%',
position: 'absolute',
};

export default PhoneGallery;
Expand Down

0 comments on commit 38bab9a

Please sign in to comment.