mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-18 13:04:46 +08:00
fix: 项目环境设置样式 bug
This commit is contained in:
parent
9b89610e38
commit
4f9742cd52
@ -137,7 +137,7 @@ class PrpjectEnv extends Component {
|
||||
const envSettingItems = envs.map((k, index) => {
|
||||
const secondIndex = 'next' + index; // 为保证key的唯一性
|
||||
return (
|
||||
<Row key={index} type="flex" justify="space-between" className={index === 0 ? 'env-first-row' : null} align={index === 0 ? 'bottom' : 'top'}>
|
||||
<Row key={index} type="flex" justify="space-between" className={index === 0 ? 'project-env env-first-row' : 'project-env'} align={index === 0 ? 'bottom' : 'top'}>
|
||||
<Col span={11}>
|
||||
<FormItem
|
||||
label={index === 0 ? (
|
||||
|
@ -193,11 +193,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
// 环境配置中首个item的删除按钮定位调整
|
||||
.env-first-row {
|
||||
.ant-col-2 {
|
||||
position: relative;
|
||||
bottom: .16rem;
|
||||
|
||||
|
||||
|
||||
.project-env{
|
||||
// 环境配置中首个item的删除按钮定位调整
|
||||
.env-first-row {
|
||||
.ant-col-2 {
|
||||
position: relative;
|
||||
bottom: .16rem;
|
||||
}
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
height: 55px;
|
||||
}
|
||||
|
||||
.ant-row-flex {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
height: 55px;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user