@antscorp/antsomi-ui 1.3.5-beta.82 → 1.3.5-beta.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,6 +16,7 @@ import { MobileWrapper, MobileInner, MobileCamera } from './styled';
|
|
|
16
16
|
export const MobileFrameV2 = (_a) => {
|
|
17
17
|
var { children } = _a, restOfProps = __rest(_a, ["children"]);
|
|
18
18
|
return (React.createElement(MobileWrapper, Object.assign({}, restOfProps),
|
|
19
|
-
React.createElement(MobileInner, null,
|
|
20
|
-
|
|
19
|
+
React.createElement(MobileInner, null,
|
|
20
|
+
React.createElement("div", { className: "mobile-inner-content" }, children),
|
|
21
|
+
React.createElement(MobileCamera, null))));
|
|
21
22
|
};
|
|
@@ -20,16 +20,24 @@ export const MobileInner = styled.div `
|
|
|
20
20
|
margin: 18px 21px;
|
|
21
21
|
border-radius: 50px;
|
|
22
22
|
overflow: hidden;
|
|
23
|
+
|
|
24
|
+
.mobile-inner-content {
|
|
25
|
+
position: absolute;
|
|
26
|
+
z-index: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
23
30
|
`;
|
|
24
31
|
export const MobileCamera = styled.div `
|
|
25
32
|
position: absolute;
|
|
33
|
+
pointer-events: none;
|
|
26
34
|
width: 112.11px;
|
|
27
35
|
height: 32.29px;
|
|
28
36
|
margin: auto;
|
|
29
|
-
top:
|
|
37
|
+
top: 10px;
|
|
30
38
|
left: 50%;
|
|
39
|
+
z-index: 1;
|
|
31
40
|
transform: translateX(-50%);
|
|
32
|
-
z-index: 1000000;
|
|
33
41
|
background: url(${cameraImage}) no-repeat center center;
|
|
34
42
|
background-size: contain;
|
|
35
43
|
`;
|