Update luci-app-passwall.patch

This commit is contained in:
kiddin9
2026-08-23 03:05:28 +08:00
committed by GitHub
parent 892c31204e
commit 19082ade16
+7 -5
View File
@@ -251,7 +251,7 @@ new file mode 100644
index 000000000000..a00fff9c79b3
--- /dev/null
+++ b/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm
@@ -0,0 +1,129 @@
@@ -0,0 +1,131 @@
+<style>
+.pure-img {
+ max-height: 100%;
@@ -329,11 +329,13 @@ index 000000000000..a00fff9c79b3
+const _ASSETS = '/luci-static/passwall/';
+const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall]], [[ip]])%>';
+
+let statusBar = document.querySelector(".status-bar");
+let mc = document.getElementById("maincontent");
+let mainContent = document.getElementById("maincontent");
+
+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");
+ flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';
+
@@ -377,7 +379,7 @@ index 000000000000..a00fff9c79b3
+});
+
+window.addEventListener('resize', resize);
+if (window.getComputedStyle(mc).getPropertyValue("contain")=== "paint") {
+if (mainContent && window.getComputedStyle(mainContent).getPropertyValue("contain")=== "paint") {
+document.body.appendChild(statusBar);
+}
+</script>