From 9144781d4da8ee5e13ff769733a678470af5246e Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Sun, 23 Aug 2026 04:18:44 +0800 Subject: [PATCH] Update luci-app-passwall2.patch --- .github/diy/patches/luci-app-passwall2.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/diy/patches/luci-app-passwall2.patch b/.github/diy/patches/luci-app-passwall2.patch index 423a0b11..37c80f75 100644 --- a/.github/diy/patches/luci-app-passwall2.patch +++ b/.github/diy/patches/luci-app-passwall2.patch @@ -210,11 +210,11 @@ index 000000000000..a00fff9c79b3 +const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall2]], [[ip]])%>'; + +let mainContent = document.getElementById("maincontent"); ++let statusBar = document.querySelector(".status-bar"); + +function resize() { + wW = window.innerWidth; -+ let lw = document.querySelector(".main-left, .fs-sidebar")?.offsetWidth ?? 5; -+ let statusBar = document.querySelector(".status-bar"); ++ let lw = document.querySelector(".main-left, :root[data-layout='sidebar'] .fs-sidebar")?.offsetWidth ?? 5; + statusBar.style.width = (wW - lw) + 'px'; + let flagElement = statusBar.querySelector(".flag"); + flagElement.style.width = (flagElement.offsetHeight / 3 * 4) + 'px';