Update luci-app-passwall.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-08-23 02:20:29 +08:00
1 parent 7746d18420
commit 892c31204e
1 file changed
+5 -2
+5 -2
View File
@@ -251,7 +251,7 @@ new file mode 100644
index 000000000000..a00fff9c79b3 index 000000000000..a00fff9c79b3
--- /dev/null --- /dev/null
+++ b/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm +++ b/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm
@@ -0,0 +1,126 @@ @@ -0,0 +1,129 @@
+<style> +<style>
+.pure-img { +.pure-img {
+ max-height: 100%; + max-height: 100%;
@@ -330,9 +330,10 @@ index 000000000000..a00fff9c79b3
+const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall]], [[ip]])%>'; +const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall]], [[ip]])%>';
+ +
+let statusBar = document.querySelector(".status-bar"); +let statusBar = document.querySelector(".status-bar");
+let mc = document.getElementById("maincontent");
+ +
+function resize() { +function resize() {
+ statusBar.style.width = document.getElementById("maincontent").offsetWidth + 'px'; + statusBar.style.width = mc.offsetWidth + 'px';
+ let flagElement = statusBar.querySelector(".flag"); + let flagElement = statusBar.querySelector(".flag");
+ flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px'; + flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
+ +
@@ -376,7 +377,9 @@ index 000000000000..a00fff9c79b3
+}); +});
+ +
+window.addEventListener('resize', resize); +window.addEventListener('resize', resize);
+if (window.getComputedStyle(mc).getPropertyValue("contain")=== "paint") {
+document.body.appendChild(statusBar); +document.body.appendChild(statusBar);
+}
+</script> +</script>
--- a/luci-app-passwall/root/usr/share/passwall/0_default_config --- a/luci-app-passwall/root/usr/share/passwall/0_default_config