fix: hide webapp list content while a webapp is open

This commit is contained in:
2026-08-16 21:33:38 +08:00
parent e0add95d7a
commit bc08a8e4c3
2 changed files with 11 additions and 0 deletions
@@ -39,6 +39,10 @@ window.showTopbar = function (tabs) {
bar.style.display = tabs.length ? 'flex' : 'none';
const panel = document.getElementById('tab-panel');
if (panel && !tabs.length) panel.style.display = 'none';
// 有 webapp 时隐藏 webapplist 页面内容(避免半透明顶栏透出列表控件),无 webapp 时恢复
// Hide the webapp list content while a webapp is open (so the translucent topbar
// doesn't show the list controls through it); restore when none are open
document.body.classList.toggle('webapp-active', tabs.length > 0);
};
// 标签面板:列出所有标签,点击切换,× 关闭