1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: 计划任务报告仅在移动端显示滚动条 (#1562)

This commit is contained in:
ssongliu 2023-07-06 14:32:21 +08:00 committed by GitHub
parent a463f237b1
commit d36dfc5490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 6 deletions

View File

@ -158,7 +158,7 @@ const form = reactive({
});
const rules = reactive({
name: [Rules.requiredInput, Rules.imageName],
path: [Rules.requiredSelect],
path: [Rules.requiredInput],
template: [Rules.requiredSelect],
});

View File

@ -6,7 +6,7 @@
<el-form @submit.prevent v-loading="loading" ref="formRef" :model="form" label-position="top">
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form-item :label="$t('container.path')" :rules="Rules.requiredSelect" prop="path">
<el-form-item :label="$t('container.path')" :rules="Rules.requiredInput" prop="path">
<el-input v-model="form.path">
<template #prepend>
<FileList @choose="loadLoadDir" :dir="false"></FileList>

View File

@ -17,7 +17,7 @@
/>
</el-select>
</el-form-item>
<el-form-item :label="$t('container.path')" :rules="Rules.requiredSelect" prop="path">
<el-form-item :label="$t('container.path')" :rules="Rules.requiredInput" prop="path">
<el-input v-model="form.path">
<template #prepend>
<FileList @choose="loadSaveDir" :dir="true"></FileList>

View File

@ -370,7 +370,7 @@ const rules = reactive({
website: [Rules.requiredSelect],
dbName: [Rules.requiredSelect],
url: [Rules.requiredInput],
sourceDir: [Rules.requiredSelect],
sourceDir: [Rules.requiredInput],
targetDirID: [Rules.requiredSelect, Rules.number],
retainCopies: [Rules.number],
});

View File

@ -123,8 +123,8 @@
</el-row>
</template>
<template #main>
<div style="overflow: auto">
<el-row :gutter="20" v-show="hasRecords" style="min-width: 900px">
<div class="mainClass">
<el-row :gutter="20" v-show="hasRecords" class="mainRowClass">
<el-col :span="8">
<div>
<ul class="infinite-list" style="overflow: auto">
@ -716,4 +716,13 @@ defineExpose({
.description {
width: 30%;
}
@media only screen and (max-width: 1000px) {
.mainClass {
overflow: auto;
}
.mainRowClass {
min-width: 900px;
}
}
</style>