Update luci-app-passwall.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-08-23 03:05:28 +08:00
1 parent 892c31204e
commit 19082ade16
1 file changed
+7 -5
+7 -5
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,129 @@ @@ -0,0 +1,131 @@
+<style> +<style>
+.pure-img { +.pure-img {
+ max-height: 100%; + max-height: 100%;
@@ -329,11 +329,13 @@ index 000000000000..a00fff9c79b3
+const _ASSETS = '/luci-static/passwall/'; +const _ASSETS = '/luci-static/passwall/';
+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 mainContent = document.getElementById("maincontent");
+let mc = document.getElementById("maincontent");
+ +
+function resize() { +function resize() {
+ statusBar.style.width = mc.offsetWidth + 'px'; + wW = window.innerWidth;
+ let lw = document.querySelector(".main-left, .fs-sidebar")?.offsetWidth ?? 5;
+ let statusBar = document.querySelector(".status-bar");
+ statusBar.style.width = (wW - lw) + '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';
+ +
@@ -377,7 +379,7 @@ index 000000000000..a00fff9c79b3
+}); +});
+ +
+window.addEventListener('resize', resize); +window.addEventListener('resize', resize);
+if (window.getComputedStyle(mc).getPropertyValue("contain")=== "paint") { +if (mainContent && window.getComputedStyle(mainContent).getPropertyValue("contain")=== "paint") {
+document.body.appendChild(statusBar); +document.body.appendChild(statusBar);
+} +}
+</script> +</script>