修复任务详情手机样式

This commit is contained in:
whyour
2022-03-09 22:32:50 +08:00
parent aa288c89b3
commit ec5f6d20cb
6 changed files with 59 additions and 121 deletions
+5 -3
View File
@@ -50,11 +50,13 @@ const CronDetailModal = ({
handleCancel,
visible,
theme,
isPhone,
}: {
cron?: any;
visible: boolean;
handleCancel: (needUpdate?: boolean) => void;
theme: string;
isPhone: boolean;
}) => {
const [activeTabKey, setActiveTabKey] = useState('log');
const [loading, setLoading] = useState(true);
@@ -213,11 +215,11 @@ const CronDetailModal = ({
forceRender
footer={false}
onCancel={() => handleCancel()}
width={'80vw'}
bodyStyle={{ background: '#eee', padding: 12 }}
wrapClassName="crontab-detail"
width={!isPhone ? '80vw' : ''}
>
<div style={{ height: '80vh' }}>
<Card bodyStyle={{ display: 'flex', justifyContent: 'space-between' }}>
<Card>
<div className="cron-detail-info-item">
<div className="cron-detail-info-title"></div>
<div className="cron-detail-info-value">
+21 -6
View File
@@ -8,15 +8,30 @@
}
}
.cron-detail-info-item {
flex: auto;
.crontab-detail {
background: '#eee';
padding: 12px;
.cron-detail-info-title {
color: #888;
.ant-card:first-child {
overflow-x: auto;
.ant-body {
display: 'flex';
justify-content: space-between;
min-width: 700px;
}
}
.cron-detail-info-value {
margin-top: 18px;
.cron-detail-info-item {
flex: auto;
.cron-detail-info-title {
color: #888;
}
.cron-detail-info-value {
margin-top: 18px;
}
}
}
+1
View File
@@ -968,6 +968,7 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
}}
cron={detailCron}
theme={theme}
isPhone={isPhone}
/>
</PageContainer>
);