1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-12 19:40:06 +08:00

feat: 移动端样式优化 (#1202)

#### What this PR does / why we need it?

#### Summary of your change

#### Please indicate you've done the following:

- [ ] Made sure tests are passing and test coverage is added if needed.
- [ ] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/).
- [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
This commit is contained in:
wangdan-fit2cloud 2023-05-31 14:05:01 +08:00 committed by GitHub
parent b854aa3bfe
commit c743775a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 8 deletions

View File

@ -40,11 +40,20 @@
.el-drawer.rtl { .el-drawer.rtl {
width: 80% !important; width: 80% !important;
} }
.site-form-wrapper { .site-form-wrapper {
width: 90% !important; width: 90% !important;
min-width: auto !important; min-width: auto !important;
.el-form-item__label { .el-form-item__label {
width: auto !important; width: auto !important;
} }
} }
.moblie-form {
overflow: auto;
.el-input {
width: 350px;
}
.el-textarea__inner {
width: 350px;
}
}
} }

View File

@ -1,7 +1,14 @@
<template> <template>
<el-row :gutter="20" v-loading="loading"> <el-row :gutter="20" v-loading="loading">
<el-col :xs="24" :sm="18" :md="14" :lg="14" :xl="14"> <el-col :xs="24" :sm="18" :md="14" :lg="14" :xl="14">
<el-form ref="httpsForm" label-position="right" label-width="auto" :model="form" :rules="rules"> <el-form
class="moblie-form"
ref="httpsForm"
label-position="right"
label-width="auto"
:model="form"
:rules="rules"
>
<el-form-item prop="enable" :label="$t('website.enableHTTPS')"> <el-form-item prop="enable" :label="$t('website.enableHTTPS')">
<el-switch v-model="form.enable" @change="changeEnable"></el-switch> <el-switch v-model="form.enable" @change="changeEnable"></el-switch>
</el-form-item> </el-form-item>