From 519574f670da8f081b6adb74d72d5c7bace3c840 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 23 Aug 2026 03:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=B8=20Sync=202026-08-23=2003:07:41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luci-app-passwall/Makefile | 2 +- .../luasrc/view/passwall/global/status_bottom.htm | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 54e016f28..b7fcef902 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall PKG_VERSION:=26.8.19 -PKG_RELEASE:=234 +PKG_RELEASE:=235 PKG_PO_VERSION:=$(PKG_VERSION) PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm b/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm index adaea6a69..a311e2293 100644 --- a/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm +++ b/luci-app-passwall/luasrc/view/passwall/global/status_bottom.htm @@ -75,10 +75,13 @@ display:block !important; const _ASSETS = '/luci-static/passwall/'; const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[passwall]], [[ip]])%>'; -let statusBar = document.querySelector(".status-bar"); +let mainContent = document.getElementById("maincontent"); function resize() { - statusBar.style.width = document.getElementById("maincontent").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'; @@ -122,5 +125,7 @@ document.addEventListener('DOMContentLoaded', function() { }); window.addEventListener('resize', resize); +if (mainContent && window.getComputedStyle(mainContent).getPropertyValue("contain")=== "paint") { document.body.appendChild(statusBar); +}