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';