master
Aaron Yu 2021-12-27 23:30:34 +08:00
parent f48d337f73
commit d3befe3723
4 changed files with 16 additions and 6 deletions

View File

@ -2,6 +2,8 @@
width: 350px;
background-color: rgb(52, 90, 176);
min-height: 100vh;
display: flex;
flex-direction: column;
}
.modeSelect {
@ -35,3 +37,7 @@
left: 0 !important;
width: 350px;
}
.bottomLogo {
margin-top: auto;
}

View File

@ -58,7 +58,7 @@ function Pane(props) {
}
useEffect(() => {
props.projects.length && setProject(props.projects[0].Name);
props.projects.length && !project && setProject(props.projects[0].Name);
}, [props.projects])
return (
@ -136,7 +136,7 @@ function Pane(props) {
</Select>
}
</div>
<img src={logoPanePng} alt='logo' width={'100%'}/>
<img src={logoPanePng} alt='logo' width={'100%'} className='bottomLogo'/>
</div>
);
}

View File

@ -0,0 +1,7 @@
.setting-card {
background: #F5F4F2;
border: 1px solid #B1B1B1;
box-sizing: border-box;
box-shadow: 0px 5px 0px #B1B1B1;
border-radius: 8px;
}

View File

@ -37,11 +37,8 @@ function SettingFrame(props) {
: ['无', '无', '无'])
.map((text, index) => (
<Grid item xs={2} sm={4} md={4} key={index}>
<div style={{
backgroundImage: `url('${settingCardPng}')`,
<div className='setting-card' style={{
position: 'relative',
backgroundRepeat: 'no-repeat',
backgroundSize: '100% 100%',
height: '120px',
textAlign: 'center',
justifyContent: 'center',