fix(web): hide session panel by default on mobile and support overlay dismiss

This commit is contained in:
zhayujie
2026-04-14 21:09:01 +08:00
parent 1c18bd9889
commit 8692e74536
3 changed files with 55 additions and 1 deletions

View File

@@ -339,6 +339,23 @@
}
.confirm-btn-ok:hover { background: #dc2626; }
/* Session panel overlay (mobile only, click to close) */
.session-panel-overlay {
display: none;
}
@media (max-width: 768px) {
.session-panel-overlay {
display: block;
position: fixed;
inset: 0;
z-index: 44;
background: rgba(0, 0, 0, 0.3);
}
.session-panel-overlay.hidden {
display: none;
}
}
/* Mobile: session panel as overlay */
@media (max-width: 768px) {
.session-panel {