update: 样式调整
parent
93fb34532f
commit
2e34a926a1
|
@ -52,7 +52,6 @@
|
|||
border: 3px solid #494949;
|
||||
display: inline-block;
|
||||
height: 62px;
|
||||
line-height: 62px;
|
||||
width: 62px;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
|
@ -67,7 +66,7 @@
|
|||
}
|
||||
|
||||
.pane-btn + .pane-btn {
|
||||
margin-left: 10px;
|
||||
margin-left: 14px;
|
||||
}
|
||||
|
||||
.generate-btn {
|
||||
|
|
|
@ -22,21 +22,20 @@
|
|||
right: 24px;
|
||||
top: 82px;
|
||||
background: #DBDBDB;
|
||||
width: 156px;
|
||||
text-align: center;
|
||||
border-radius: 5px;
|
||||
padding-top: 14px;
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
padding-bottom: 11px;
|
||||
}
|
||||
|
||||
.qrCode p {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-left: 22px;
|
||||
color: #666666;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.qrCode img {
|
||||
margin-left: 8px;
|
||||
}
|
|
@ -19,14 +19,12 @@ var configMap = {
|
|||
bkg: androidVPng,
|
||||
rotate: true,
|
||||
width: "666px",
|
||||
height: "321px",
|
||||
offsetv: "4px",
|
||||
height: "321px"
|
||||
},
|
||||
"android-v": {
|
||||
bkg: androidVPng,
|
||||
width: "321px",
|
||||
width: "323px",
|
||||
height: "666px",
|
||||
offsetv: "5px",
|
||||
},
|
||||
"iphone-h": {
|
||||
bkg: iphoneVPng,
|
||||
|
@ -40,16 +38,15 @@ var configMap = {
|
|||
height: "693px",
|
||||
},
|
||||
"ipad-h": {
|
||||
bkg: ipadHPng,
|
||||
width: "433px",
|
||||
height: "326px",
|
||||
offsetv: "5px",
|
||||
bkg: ipadVPng,
|
||||
rotate: true,
|
||||
width: "460px",
|
||||
height: "320px",
|
||||
},
|
||||
"ipad-v": {
|
||||
bkg: ipadVPng,
|
||||
width: "324px",
|
||||
height: "433px",
|
||||
offsetv: "5px",
|
||||
width: "320px",
|
||||
height: "460px",
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -82,7 +79,7 @@ function DeviceFrame(props) {
|
|||
<p style={{ margin: "0", }}>
|
||||
{t("scan")}
|
||||
<CopyToClipboard text={absoluteUrl} onCopy={() => setOpenPopup(true)}>
|
||||
<img style={{ cursor: "pointer", width: "20px", height: "20px" }} src={copyPng} alt="复制链接" />
|
||||
<img style={{ cursor: "pointer", width: "20px", height: "20px", marginLeft: "9px" }} src={copyPng} alt="复制链接" />
|
||||
</CopyToClipboard>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -79,37 +79,50 @@ function Pane(props) {
|
|||
|
||||
return (
|
||||
<div className="Pane">
|
||||
<Select
|
||||
id="mode-select"
|
||||
value={mode}
|
||||
onChange={(e) => modeChange(e)}
|
||||
IconComponent={CustomIcon}
|
||||
sx={{
|
||||
width: "100%",
|
||||
height: '42px',
|
||||
border: "1px solid #757575",
|
||||
background: "#535353",
|
||||
borderRadius: '5px',
|
||||
color: "white",
|
||||
boxShadow: '0px 3px 0px 0px rgba(0, 0, 0, 0.3)',
|
||||
// '&.MuiOutlinedInput-notchedOutline': {
|
||||
// borderColor: '#757575', // 设置焦点时的边框颜色为红色
|
||||
// },
|
||||
'&.Mui-focused': {
|
||||
borderColor: '#757575',
|
||||
'&.MuiOutlinedInput-notchedOutline': {
|
||||
borderColor: '#757575 !important',
|
||||
},
|
||||
},
|
||||
}}
|
||||
MenuProps={{
|
||||
classes: {
|
||||
paper: "selectPager",
|
||||
},
|
||||
}}>
|
||||
<MenuItem value={"normal"}>Normal Preview</MenuItem>
|
||||
<MenuItem value={"dynamic"}>Dynamic Preview</MenuItem>
|
||||
</Select>
|
||||
<div>
|
||||
{props.loading ? (
|
||||
<CircularProgress color="inherit" />
|
||||
) : (
|
||||
project && (
|
||||
<Select
|
||||
id="project-select"
|
||||
value={project}
|
||||
onChange={(e) => projectSelect(e)}
|
||||
IconComponent={CustomIcon}
|
||||
placeholder="选择项目"
|
||||
sx={{
|
||||
width: "100%",
|
||||
height: '42px',
|
||||
border: "1px solid #757575",
|
||||
background: "#535353",
|
||||
borderRadius: '5px',
|
||||
color: "white",
|
||||
boxShadow: '0px 3px 0px 0px rgba(0, 0, 0, 0.3)',
|
||||
// '&.MuiOutlinedInput-notchedOutline': {
|
||||
// borderColor: '#757575', // 设置焦点时的边框颜色为红色
|
||||
// },
|
||||
'&.Mui-focused': {
|
||||
borderColor: '#757575',
|
||||
'&.MuiOutlinedInput-notchedOutline': {
|
||||
borderColor: '#757575 !important',
|
||||
},
|
||||
},
|
||||
}}
|
||||
MenuProps={{
|
||||
classes: {
|
||||
paper: "selectPager",
|
||||
},
|
||||
}}
|
||||
>
|
||||
{props.projects.map((pName, i) => (
|
||||
<MenuItem key={i} value={pName}>
|
||||
{pName}
|
||||
</MenuItem>
|
||||
))}
|
||||
</Select>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
<List
|
||||
sx={{
|
||||
paddingTop: '20px'
|
||||
|
@ -126,14 +139,12 @@ function Pane(props) {
|
|||
background: '#535353',
|
||||
border: '1px solid #757575',
|
||||
boxShadow: '0px 3px 0px 0px rgba(0, 0, 0, 0.3)',
|
||||
paddingLeft: '52px',
|
||||
paddingTop: '16px',
|
||||
paddingBottom: '8px',
|
||||
paddingLeft: '23px',
|
||||
paddingRight: '20px',
|
||||
marginBottom: '14px'
|
||||
|
||||
}}>
|
||||
<div style={{ display: "flex", flexDirection: 'column', justifyContent: 'center', alignItems: "center", width: '98px' }}>
|
||||
<div style={{ display: "flex", flexDirection: 'column', justifyContent: 'center', alignItems: "center", width: '98px'}}>
|
||||
<img className="deviceIcon" style={{ height: _device.name === 'iPad' ? '54px' : '76px'}} src={_device.icon} alt={_device.name} />
|
||||
<img className="deviceText" src={_device.text} alt={_device.name} />
|
||||
</div>
|
||||
|
@ -152,34 +163,7 @@ function Pane(props) {
|
|||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
<div
|
||||
style={{
|
||||
marginTop: "50px",
|
||||
color: "white",
|
||||
}}>
|
||||
{props.loading ? (
|
||||
<CircularProgress color="inherit" />
|
||||
) : (
|
||||
project && (
|
||||
<Select
|
||||
id="project-select"
|
||||
value={project}
|
||||
onChange={(e) => projectSelect(e)}
|
||||
placeholder="选择项目"
|
||||
sx={{
|
||||
background: "rgb(115, 158, 211)",
|
||||
width: "80%",
|
||||
color: "white",
|
||||
}}>
|
||||
{props.projects.map((pName, i) => (
|
||||
<MenuItem key={i} value={pName}>
|
||||
{pName}
|
||||
</MenuItem>
|
||||
))}
|
||||
</Select>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
|
||||
{!props.hideLogo && <div className="bottomLogo"><img src={logoPanePng} alt="logo" width={"100%"} /></div> }
|
||||
</div>
|
||||
);
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 2.9 KiB |
Loading…
Reference in New Issue