fix(gui): localize proxy-group strings, fit the DNS dialog on phones, allow zoom

outboundGroupPanel had two hard-coded Chinese strings and a dead
$t() || fallback (vue-i18n never returns a falsy value). zh.js lacked
subscription.autoSelect, so the checkbox label fell back to English.

The DNS dialog forced min-width: 680px, which beats max-width: 95vw and
made the page scroll sideways on phones; cap it at the viewport and let
the grid columns shrink.

The viewport meta disabled pinch zoom.
This commit is contained in:
Zakk committed 2026-09-18 01:11:24 +10:00
1 parent d708e083be
commit cdfbb1c2d8
6 files changed
+27 -5

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./favicon.ico" />
<title>v2rayA</title>
</head>
+19 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="modal-card dns-setting-modal" style="width: auto; min-width: 680px; max-width: 95vw; margin: auto">
<div class="modal-card dns-setting-modal" style="width: auto; min-width: min(680px, 95vw); max-width: 95vw; margin: auto">
<header class="modal-card-head">
<p class="modal-card-title">{{ $t("dns.title") }}</p>
<a
@@ -248,6 +248,24 @@ export default {
display: flex;
align-items: center;
}
// Four columns do not fit a phone: the header row goes, and each rule
// stacks server / domains / outbound with the delete button beside the
// outbound select.
@media screen and (max-width: 640px) {
.dns-header {
display: none;
}
.dns-row {
grid-template-columns: 1fr 42px;
}
.col-server,
.col-domains {
grid-column: 1 / -1;
}
}
}
</style>
+3 -3
View File
@@ -86,7 +86,7 @@
></span>
</div>
<div v-if="!getGroupNodes(outbound).length" class="ogp-nodes-empty">
{{ $t("common.empty") || "暂无节点" }}
{{ $t("common.empty") }}
</div>
</div>
</div>
@@ -112,7 +112,7 @@
<section class="modal-card-body" style="min-height: 200px; max-height: 60vh; overflow-y: auto">
<b-input
v-model="nodeSearch"
placeholder="搜索节点..."
:placeholder="$t('proxyGroup.searchNodes')"
icon="magnify"
style="margin-bottom: 0.75rem"
></b-input>
@@ -145,7 +145,7 @@
</b-tag>
</div>
<div v-if="!filteredNodes.length && !loadingNodes" style="text-align: center; padding: 1rem; color: #888">
暂无节点
{{ $t("common.empty") }}
</div>
</template>
</section>
+1
View File
@@ -390,6 +390,7 @@ export default {
pickTitle: "Add to Proxy Group",
pickMessage: "Choose the proxy group this node should join.",
group: "Proxy Group",
searchNodes: "Search nodes...",
},
log: {
logModalTitle: "View logs",
+1
View File
@@ -397,6 +397,7 @@ export default {
pickTitle: "프록시 그룹에 추가",
pickMessage: "이 노드가 참여할 프록시 그룹을 선택하세요.",
group: "프록시 그룹",
searchNodes: "노드 검색...",
},
driver: {
welcome: [
+2
View File
@@ -66,6 +66,7 @@ export default {
timeLastUpdate: "上次更新时间",
numberServers: "节点数",
subscription: "订阅",
autoSelect: "订阅自动更新后自动连接其中的新节点",
},
operations: {
tproxyWhiteIpGroups: "直通白名单IP组",
@@ -382,6 +383,7 @@ export default {
pickTitle: "添加到代理分组",
pickMessage: "选择要加入的代理分组。",
group: "代理分组",
searchNodes: "搜索节点...",
},
driver: {
welcome: [