From 00addb0dd9f6451124466fb7ab6cae9ab9a8a643 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Fri, 21 Mar 2025 14:38:41 +0000 Subject: chore: delete `display.css` these styles are not used anywhere --- web/assets/element-ui/theme-chalk/display.css | 1 - web/html/common/head.html | 1 - 2 files changed, 2 deletions(-) delete mode 100644 web/assets/element-ui/theme-chalk/display.css diff --git a/web/assets/element-ui/theme-chalk/display.css b/web/assets/element-ui/theme-chalk/display.css deleted file mode 100644 index 1d8790ba..00000000 --- a/web/assets/element-ui/theme-chalk/display.css +++ /dev/null @@ -1 +0,0 @@ -@media only screen and (max-width:767px){.hidden-xs-only{display:none!important}}@media only screen and (min-width:768px){.hidden-sm-and-up{display:none!important}}@media only screen and (min-width:768px) and (max-width:991px){.hidden-sm-only{display:none!important}}@media only screen and (max-width:991px){.hidden-sm-and-down{display:none!important}}@media only screen and (min-width:992px){.hidden-md-and-up{display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){.hidden-md-only{display:none!important}}@media only screen and (max-width:1199px){.hidden-md-and-down{display:none!important}}@media only screen and (min-width:1200px){.hidden-lg-and-up{display:none!important}}@media only screen and (min-width:1200px) and (max-width:1919px){.hidden-lg-only{display:none!important}}@media only screen and (max-width:1919px){.hidden-lg-and-down{display:none!important}}@media only screen and (min-width:1920px){.hidden-xl-only{display:none!important}} \ No newline at end of file diff --git a/web/html/common/head.html b/web/html/common/head.html index ca854a30..4c6bb4e2 100644 --- a/web/html/common/head.html +++ b/web/html/common/head.html @@ -5,7 +5,6 @@ - - {{ .host }}-{{ i18n .title}} + {{ .host }} – {{ i18n .title}}
{{end}} \ No newline at end of file -- cgit v1.2.3 From 6f4eefe60181a9913155ec8c1cc644bf78b23ea3 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Fri, 21 Mar 2025 15:09:05 +0000 Subject: chore: make class to get the device form factor --- web/assets/js/util/index.js | 6 ++++++ web/html/common/qrcode_modal.html | 3 +-- web/html/xui/inbounds.html | 4 ++-- web/html/xui/index.html | 2 +- web/html/xui/xray.html | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/web/assets/js/util/index.js b/web/assets/js/util/index.js index 85d53352..625af8b9 100644 --- a/web/assets/js/util/index.js +++ b/web/assets/js/util/index.js @@ -780,4 +780,10 @@ class LanguageManager { return languageFilter.length > 0; } +} + +class DeviceUtils { + static isMobile() { + return window.innerWidth <= 768; + } } \ No newline at end of file diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 5ea1ca95..93d66fc2 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -1,6 +1,6 @@ {{define "qrcodeModal"}} @@ -35,7 +35,6 @@