Skip to content

Commit 4f0a1d4

Browse files
feat(Scanner): Fixed scanner zoom
1 parent 735faa6 commit 4f0a1d4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/components/Scanner/scanner.tsx

+16-1
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,28 @@ class Scanner extends Component<ScannerProps, ScannerState> {
8989
const vid: React.CSSProperties = {
9090
position: "fixed",
9191
zIndex: 999,
92-
left: 0,
92+
left: "50%",
93+
top: 0,
94+
transform: "translateX(-50%)",
95+
};
96+
97+
const backdrop: React.CSSProperties = {
98+
position: "fixed",
99+
zIndex: 998,
93100
top: 0,
101+
left: 0,
102+
width: "100%",
103+
height: "100%",
104+
background: "rgba(0, 0, 0, 0.2)",
105+
backdropFilter: "blur(0.5rem)",
106+
WebkitBackdropFilter: "blur(0.5rem)",
94107
};
108+
95109

96110
return (
97111
!isHidden && (
98112
<>
113+
<div style={backdrop}></div>
99114
<div id="controls">
100115
<span id="close">
101116
<div className="flex-container">

0 commit comments

Comments
 (0)