update: 样式调整

index
icefire 2024-10-16 18:31:10 +08:00
parent 93fb34532f
commit 2e34a926a1
5 changed files with 60 additions and 81 deletions

View File

@ -52,7 +52,6 @@
border: 3px solid #494949; border: 3px solid #494949;
display: inline-block; display: inline-block;
height: 62px; height: 62px;
line-height: 62px;
width: 62px; width: 62px;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
@ -67,7 +66,7 @@
} }
.pane-btn + .pane-btn { .pane-btn + .pane-btn {
margin-left: 10px; margin-left: 14px;
} }
.generate-btn { .generate-btn {

View File

@ -22,21 +22,20 @@
right: 24px; right: 24px;
top: 82px; top: 82px;
background: #DBDBDB; background: #DBDBDB;
width: 156px;
text-align: center;
border-radius: 5px; border-radius: 5px;
padding-top: 14px; padding-top: 14px;
padding-left: 14px;
padding-right: 14px;
padding-bottom: 11px; padding-bottom: 11px;
} }
.qrCode p { .qrCode p {
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
padding-left: 22px;
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
} }
.qrCode img { .qrCode img {
margin-left: 8px;
} }

View File

@ -19,14 +19,12 @@ var configMap = {
bkg: androidVPng, bkg: androidVPng,
rotate: true, rotate: true,
width: "666px", width: "666px",
height: "321px", height: "321px"
offsetv: "4px",
}, },
"android-v": { "android-v": {
bkg: androidVPng, bkg: androidVPng,
width: "321px", width: "323px",
height: "666px", height: "666px",
offsetv: "5px",
}, },
"iphone-h": { "iphone-h": {
bkg: iphoneVPng, bkg: iphoneVPng,
@ -40,16 +38,15 @@ var configMap = {
height: "693px", height: "693px",
}, },
"ipad-h": { "ipad-h": {
bkg: ipadHPng, bkg: ipadVPng,
width: "433px", rotate: true,
height: "326px", width: "460px",
offsetv: "5px", height: "320px",
}, },
"ipad-v": { "ipad-v": {
bkg: ipadVPng, bkg: ipadVPng,
width: "324px", width: "320px",
height: "433px", height: "460px",
offsetv: "5px",
}, },
}; };
@ -82,7 +79,7 @@ function DeviceFrame(props) {
<p style={{ margin: "0", }}> <p style={{ margin: "0", }}>
{t("scan")} {t("scan")}
<CopyToClipboard text={absoluteUrl} onCopy={() => setOpenPopup(true)}> <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> </CopyToClipboard>
</p> </p>

View File

@ -79,11 +79,17 @@ function Pane(props) {
return ( return (
<div className="Pane"> <div className="Pane">
<div>
{props.loading ? (
<CircularProgress color="inherit" />
) : (
project && (
<Select <Select
id="mode-select" id="project-select"
value={mode} value={project}
onChange={(e) => modeChange(e)} onChange={(e) => projectSelect(e)}
IconComponent={CustomIcon} IconComponent={CustomIcon}
placeholder="选择项目"
sx={{ sx={{
width: "100%", width: "100%",
height: '42px', height: '42px',
@ -106,10 +112,17 @@ function Pane(props) {
classes: { classes: {
paper: "selectPager", paper: "selectPager",
}, },
}}> }}
<MenuItem value={"normal"}>Normal Preview</MenuItem> >
<MenuItem value={"dynamic"}>Dynamic Preview</MenuItem> {props.projects.map((pName, i) => (
<MenuItem key={i} value={pName}>
{pName}
</MenuItem>
))}
</Select> </Select>
)
)}
</div>
<List <List
sx={{ sx={{
paddingTop: '20px' paddingTop: '20px'
@ -126,14 +139,12 @@ function Pane(props) {
background: '#535353', background: '#535353',
border: '1px solid #757575', border: '1px solid #757575',
boxShadow: '0px 3px 0px 0px rgba(0, 0, 0, 0.3)', boxShadow: '0px 3px 0px 0px rgba(0, 0, 0, 0.3)',
paddingLeft: '52px', paddingLeft: '23px',
paddingTop: '16px',
paddingBottom: '8px',
paddingRight: '20px', paddingRight: '20px',
marginBottom: '14px' 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="deviceIcon" style={{ height: _device.name === 'iPad' ? '54px' : '76px'}} src={_device.icon} alt={_device.name} />
<img className="deviceText" src={_device.text} alt={_device.name} /> <img className="deviceText" src={_device.text} alt={_device.name} />
</div> </div>
@ -152,34 +163,7 @@ function Pane(props) {
</ListItem> </ListItem>
))} ))}
</List> </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> } {!props.hideLogo && <div className="bottomLogo"><img src={logoPanePng} alt="logo" width={"100%"} /></div> }
</div> </div>
); );

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB