fix divider of inbound modal in mobile view

This commit is contained in:
Alireza Ahmadi
2023-08-27 10:08:51 +02:00
parent 50822b01f1
commit 8a22b088a9
4 changed files with 14 additions and 18 deletions

View File

@@ -1,19 +1,18 @@
{{define "form/sniffing"}}
<a-divider style="margin:0;"></a-divider>
<a-form layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item>
<span slot="label">
sniffing
<a-tooltip>
<template slot="title">
<span>{{ i18n "pages.inbounds.noRecommendKeepDefault" }}</span>
</template>
<a-icon type="question-circle" theme="filled"></a-icon>
</a-tooltip>
</span>
<span slot="label">
sniffing
<a-tooltip>
<template slot="title">
<span>{{ i18n "pages.inbounds.noRecommendKeepDefault" }}</span>
</template>
<a-icon type="question-circle" theme="filled"></a-icon>
</a-tooltip>
</span>
<a-switch v-model="inbound.sniffing.enabled"></a-switch>
</a-form-item>
</a-divider>
<a-form-item>
<a-checkbox-group v-model="inbound.sniffing.destOverride" v-if="inbound.sniffing.enabled">
<a-checkbox v-for="key,value in SNIFFING_OPTION" :value="key">[[ value ]]</a-checkbox>

View File

@@ -1,7 +1,7 @@
{{define "form/streamSettings"}}
<!-- select stream network -->
<a-divider style="margin:0;"></a-divider>
<a-form layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item label="{{ i18n "transmission" }}">
<a-select v-model="inbound.stream.network" @change="streamNetworkChange"
:dropdown-class-name="themeSwitcher.darkCardClass">
@@ -13,7 +13,6 @@
<a-select-option value="grpc">grpc</a-select-option>
</a-select>
</a-form-item>
</a-divider>
</a-form>
<!-- tcp -->

View File

@@ -1,10 +1,9 @@
{{define "form/streamSockopt"}}
<a-divider style="margin:0;"></a-divider>
<a-form layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item label="Transparent Proxy">
<a-switch v-model="inbound.stream.sockoptSwitch"></a-switch>
</a-form-item>
</a-divider>
<table width="100%" class="ant-table-tbody" v-if="inbound.stream.sockoptSwitch">
<tr>
<td>Accept Proxy Protocol</td>

View File

@@ -1,15 +1,14 @@
{{define "form/tlsSettings"}}
<!-- tls enable -->
<a-divider style="margin:0;"></a-divider>
<a-form v-if="inbound.canSetTls()" layout="inline">
<a-divider dashed style="margin:0;">
<a-form-item label="TLS">
<a-switch v-model="inbound.tls">
</a-switch>
</a-form-item>
<a-form-item v-if="inbound.canEnableReality()" label="Reality">
<a-form-item label="Reality" v-if="inbound.canEnableReality()">
<a-switch v-model="inbound.reality"></a-switch>
</a-form-item>
</a-divider>
</a-form>
<!-- tls settings -->