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