fix: update some styles
parent
a6196e8f7d
commit
1418128b0d
|
@ -39,3 +39,7 @@
|
||||||
|
|
||||||
.qrCode img {
|
.qrCode img {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#deviceFrame {
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
|
@ -3,7 +3,7 @@ import androidHPng from "../../images/android-h.png";
|
||||||
import androidVPng from "../../images/android-v.png";
|
import androidVPng from "../../images/android-v.png";
|
||||||
import iphoneHPng from "../../images/iphone-h.png";
|
import iphoneHPng from "../../images/iphone-h.png";
|
||||||
import iphoneVPng from "../../images/iphone-v.png";
|
import iphoneVPng from "../../images/iphone-v.png";
|
||||||
import ipadHPng from "../../images/iPad-h.png";
|
import ipadHPng from "../../images/ipad-horizontal.png";
|
||||||
import ipadVPng from "../../images/iPad-v.png";
|
import ipadVPng from "../../images/iPad-v.png";
|
||||||
import copyPng from "../../images/copy.png";
|
import copyPng from "../../images/copy.png";
|
||||||
import refreshButtonPng from "../../images/refresh-button.png";
|
import refreshButtonPng from "../../images/refresh-button.png";
|
||||||
|
@ -31,25 +31,44 @@ var configMap = {
|
||||||
"iphone-h": {
|
"iphone-h": {
|
||||||
bkg: iphoneVPng,
|
bkg: iphoneVPng,
|
||||||
rotate: true,
|
rotate: true,
|
||||||
width: "692px",
|
width: "690px",
|
||||||
height: "322px",
|
height: "325px",
|
||||||
|
styles: {
|
||||||
|
borderRadius: '13px'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"iphone-v": {
|
"iphone-v": {
|
||||||
bkg: iphoneVPng,
|
bkg: iphoneVPng,
|
||||||
width: "322px",
|
width: "322px",
|
||||||
height: "693px",
|
height: "693px",
|
||||||
|
styles: {
|
||||||
|
borderRadius: '13px'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"ipad-h": {
|
"ipad-h": {
|
||||||
bkg: ipadHPng,
|
bkg: ipadHPng,
|
||||||
width: "433px",
|
rotate: true,
|
||||||
|
width: "458px",
|
||||||
height: "326px",
|
height: "326px",
|
||||||
offsetv: "5px",
|
offsetv: "5px",
|
||||||
|
imgStyle: {
|
||||||
|
transform: 'rotate(-90deg) scale(1.4)',
|
||||||
|
},
|
||||||
|
styles: {
|
||||||
|
transform: "translate(-50%, -50%) scale(1.42)",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"ipad-v": {
|
"ipad-v": {
|
||||||
bkg: ipadVPng,
|
bkg: ipadHPng,
|
||||||
width: "324px",
|
width: "326px",
|
||||||
height: "433px",
|
height: "458px",
|
||||||
offsetv: "5px",
|
offsetv: "5px",
|
||||||
|
imgStyle: {
|
||||||
|
transform: 'scale(1.4)',
|
||||||
|
},
|
||||||
|
styles: {
|
||||||
|
transform: "translate(-50%, -50%) scale(1.42)",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -101,7 +120,7 @@ function DeviceFrame(props) {
|
||||||
</Alert>
|
</Alert>
|
||||||
</Snackbar>
|
</Snackbar>
|
||||||
<div>
|
<div>
|
||||||
<img src={config.bkg} alt="background" style={{ position: "relative", zIndex: 100, transform: config.rotate ? "rotate(-90deg)" : "", pointerEvents: 'none' }} />
|
<img src={config.bkg} alt="background" style={{ position: "relative", zIndex: 100, transform: config.rotate ? "rotate(-90deg)" : "", pointerEvents: 'none', ...config.imgStyle }} />
|
||||||
{props.htmlUrl && (
|
{props.htmlUrl && (
|
||||||
<iframe
|
<iframe
|
||||||
id="deviceFrame"
|
id="deviceFrame"
|
||||||
|
@ -109,8 +128,9 @@ function DeviceFrame(props) {
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: "50%",
|
top: "50%",
|
||||||
left: "50%",
|
left: "50%",
|
||||||
transform: "translate(-50%, -50%)",
|
transform: "translate(-50%, -50%) scale(1.007)",
|
||||||
paddingBottom: config.offsetv,
|
paddingBottom: config.offsetv,
|
||||||
|
...config.styles
|
||||||
}}
|
}}
|
||||||
allow="clipboard-read; clipboard-write *"
|
allow="clipboard-read; clipboard-write *"
|
||||||
title="preview"
|
title="preview"
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 76px;
|
height: 76px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
margin-top: 7px;
|
||||||
}
|
}
|
||||||
.deviceText {
|
.deviceText {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.deviceContent {
|
.deviceContent {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
color: #EEEEEE;
|
color: #eeeeee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deviceButtons {
|
.deviceButtons {
|
||||||
|
@ -39,8 +39,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectPager {
|
.selectPager {
|
||||||
left: 0 !important;
|
left: 25px !important;
|
||||||
width: 350px;
|
width: 319px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottomLogo {
|
.bottomLogo {
|
||||||
|
|
|
@ -123,6 +123,7 @@ function Pane(props) {
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<List
|
<List
|
||||||
sx={{
|
sx={{
|
||||||
paddingTop: '20px'
|
paddingTop: '20px'
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in New Issue