Skip to content

Commit

Permalink
fix: fix dialog small in phone
Browse files Browse the repository at this point in the history
  • Loading branch information
alongw committed Dec 16, 2023
1 parent eeb6a22 commit 51ff259
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions src/views/admin/settings/VendorManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ onMounted(() => {
<div class="card-footer flex flex-wrap justify-between overflow-hidden"></div>
</div>

<el-dialog class="el-dialog" v-model="dialog.visible" title="配置解析器">
<el-dialog
class="el-dialog rounded-lg dark:bg-zinc-800 w-2/6 max-sm:w-full"
v-model="dialog.visible"
title="配置解析器"
>
<el-form :model="dialog.data" :rules="dialog.rules" label-width="120px">
<el-form-item label="节点" prop="endpoint">
<el-input :disabled="dialog.dialog !== 'new'" v-model="dialog.data.backend.endpoint" />
Expand Down Expand Up @@ -315,9 +319,19 @@ onMounted(() => {
</template>

<style scoped lang="less">
@media screen and (min-width: 220px) and (max-width: 600px) {
.el-dialog {
width: 90% !important;
@media screen and (max-width: 500px) {
.el-dialog /deep/ .el-dialog__wrapper {
width: 300px !important;
.el-dialog__body {
padding: 10px 20px !important;
.el-form-item__label {
width: 68px !important;
}
.el-select,
.el-input {
width: 180px !important;
}
}
}
}
</style>

0 comments on commit 51ff259

Please sign in to comment.