From e9a38d1a21c8612c846eefffb39e951ff802f220 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Thu, 20 Aug 2026 06:29:44 +0800 Subject: [PATCH] Update luci-app-passwall2.patch --- .github/diy/patches/luci-app-passwall2.patch | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/diy/patches/luci-app-passwall2.patch b/.github/diy/patches/luci-app-passwall2.patch index 5136096a..c526896f 100644 --- a/.github/diy/patches/luci-app-passwall2.patch +++ b/.github/diy/patches/luci-app-passwall2.patch @@ -145,7 +145,7 @@ index 000000000000..a00fff9c79b3 + box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .3); + color: #525f7f; + background: #fff; -+ z-index: 5; ++ z-index: 999; + box-sizing: border-box; +} + @@ -209,13 +209,10 @@ index 000000000000..a00fff9c79b3 +const _ASSETS = '/luci-static/passwall2/'; +const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall2]], [[ip]])%>'; + -+let wW = window.innerWidth; ++let statusBar = document.querySelector(".status-bar"); + +function resize() { -+ wW = window.innerWidth; -+ let lw = document.querySelector(".main-left")?.offsetWidth ?? 5; -+ let statusBar = document.querySelector(".status-bar"); -+ statusBar.style.width = (wW - lw) + 'px'; ++ statusBar.style.width = document.getElementById("maincontent").offsetWidth + 'px'; + let flagElement = statusBar.querySelector(".flag"); + flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px'; + @@ -259,4 +256,5 @@ index 000000000000..a00fff9c79b3 +}); + +window.addEventListener('resize', resize); ++document.body.appendChild(statusBar); +