From 69677c3a2ce22c7eb2d0fae9a4d233ca20b81287 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Sun, 23 Aug 2026 04:19:27 +0800 Subject: [PATCH] Update ssr-plus.patch --- .github/diy/patches/ssr-plus.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/diy/patches/ssr-plus.patch b/.github/diy/patches/ssr-plus.patch index 501702cc..7d36f680 100644 --- a/.github/diy/patches/ssr-plus.patch +++ b/.github/diy/patches/ssr-plus.patch @@ -211,11 +211,11 @@ index 000000000000..a00fff9c79b3 +const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[shadowsocksr]], [[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';