From 036df9f7b30b06c958f77f9e8d9f85aacc4c3a8d Mon Sep 17 00:00:00 2001
From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com>
Date: Sat, 15 Mar 2025 05:24:18 +0000
Subject: [PATCH] chore: some improvements in 'overview page' - reduced font
size - added caption to buttons - fixed display of xray state - xray version
display returned
---
web/html/xui/index.html | 134 +++++++++++++++------------
web/translation/translate.en_US.toml | 2 +-
web/translation/translate.es_ES.toml | 2 +-
web/translation/translate.id_ID.toml | 2 +-
web/translation/translate.ja_JP.toml | 2 +-
web/translation/translate.pt_BR.toml | 2 +-
web/translation/translate.ru_RU.toml | 2 +-
web/translation/translate.tr_TR.toml | 2 +-
web/translation/translate.uk_UA.toml | 2 +-
web/translation/translate.vi_VN.toml | 2 +-
web/translation/translate.zh_CN.toml | 2 +-
11 files changed, 84 insertions(+), 70 deletions(-)
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index 8dee4bf2..bd7d3878 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -25,13 +25,16 @@
cursor: pointer;
}
.dark .ant-backup-list-item svg,
- .dark .ant-card-actions>li>span>.anticon, .ant-card-actions>li>span a:not(.ant-btn),
+ .dark .ant-card-actions>li>*,
.dark .ant-badge-status-text,
.dark .ant-statistic-title,
.dark .ant-statistic-content,
.dark .ant-card-extra {
color: var(--dark-color-text-primary) !important;
}
+ .dark .ant-card-actions>li>*:hover {
+ color: var(--color-primary-100) !important;
+ }
.dark .ant-backup-list,
.dark .ant-xray-version-list,
.dark .ant-card-actions,
@@ -41,6 +44,12 @@
.ant-card-actions {
background: transparent !important;
}
+ .ant-statistic-content-prefix {
+ font-size: 20px;
+ }
+ .ant-statistic-content-value {
+ font-size: 18px;
+ }
.ip-hidden {
filter: blur(10px);
}
@@ -120,6 +129,58 @@
+
+
+
+
+
+
+
+
+ An error occurred while running Xray
+ {{ i18n "pages.index.logs" }}
+
+
+ [[ line ]]
+
+
+
+
+
+
+
+
+ {{ i18n "pages.index.stopXray" }}
+
+
+
+ {{ i18n "pages.index.restartXray" }}
+
+
+
+ v[[ status.xray.version ]]
+
+
+
+
+
+
+
+
+
+ {{ i18n "pages.index.logs" }}
+
+
+
+ {{ i18n "pages.index.config" }}
+
+
+
+ {{ i18n "pages.index.backup" }}
+
+
+
+
v{{ .cur_ver }}
@@ -132,54 +193,6 @@
OS: [[ TimeFormatter.formatSecond(status.uptime) ]]
-
-
-
-
-
- An error occurred while running Xray
- {{ i18n "pages.index.logs" }}
-
-
- [[ line ]]
-
-
-
-
-
-
- {{ i18n "pages.index.stopXray" }}
-
-
-
- {{ i18n "pages.index.restartXray" }}
-
-
-
- v[[ status.xray.version ]]
-
-
-
-
-
-
-
-
-
- {{ i18n "pages.index.logs" }}
-
-
-
- {{ i18n "pages.index.config" }}
-
-
-
- {{ i18n "pages.index.backup" }}
-
-
-
-
-
@@ -209,14 +222,14 @@
-
+
-
+
@@ -229,14 +242,14 @@
-
+
-
+
@@ -249,7 +262,7 @@
-
+
@@ -259,7 +272,7 @@
-
+
@@ -275,14 +288,14 @@
-
+
-
+
@@ -388,9 +401,9 @@
{{template "textModal"}}