mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
fix: 项目环境配置图标对齐错误
This commit is contained in:
parent
bdc5a27c93
commit
1a7e12e61b
@ -135,7 +135,7 @@ class PrpjectEnv extends Component {
|
|||||||
const envSettingItems = envs.map((k, index) => {
|
const envSettingItems = envs.map((k, index) => {
|
||||||
const secondIndex = 'next' + index; // 为保证key的唯一性
|
const secondIndex = 'next' + index; // 为保证key的唯一性
|
||||||
return (
|
return (
|
||||||
<Row key={index} type="flex" justify="space-between" align={index === 0 ? 'middle' : 'top'}>
|
<Row key={index} type="flex" justify="space-between" className={index === 0 ? 'env-first-row' : null} align={index === 0 ? 'bottom' : 'top'}>
|
||||||
<Col span={11}>
|
<Col span={11}>
|
||||||
<FormItem
|
<FormItem
|
||||||
label={index === 0 ? (
|
label={index === 0 ? (
|
||||||
@ -227,7 +227,7 @@ class PrpjectEnv extends Component {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div className="m-panel">
|
<div className="m-panel env">
|
||||||
<div className="panel-title">
|
<div className="panel-title">
|
||||||
<h2 className="title">在这里添加项目的环境配置</h2>
|
<h2 className="title">在这里添加项目的环境配置</h2>
|
||||||
<p className="desc">你可以添加多个环境,用于区分不同的使用场景。</p>
|
<p className="desc">你可以添加多个环境,用于区分不同的使用场景。</p>
|
||||||
|
@ -192,3 +192,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.env-first-row {
|
||||||
|
.ant-col-2 {
|
||||||
|
position: relative;
|
||||||
|
bottom: .16rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user