From a037962cc18f6e399c72be1909d7686c1cf7ecc5 Mon Sep 17 00:00:00 2001 From: illusia <64828020+EchoSixHIYA@users.noreply.github.com> Date: Thu, 3 Sep 2026 16:40:22 +0800 Subject: [PATCH] fix: let mobile admin pages scroll naturally --- web/src/views/AdminView.vue | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/web/src/views/AdminView.vue b/web/src/views/AdminView.vue index 2099c79..dd3f92e 100644 --- a/web/src/views/AdminView.vue +++ b/web/src/views/AdminView.vue @@ -624,4 +624,32 @@ async function parseResponse(response: Response) { const value = await response. .server-page .settings-grid{overflow:visible;grid-auto-rows:auto} .server-page .settings-card{overflow:visible} } + +/* Mobile admin pages should read like one continuous form. Keep the desktop + viewport shell untouched, but let the document grow vertically on narrow + screens instead of trapping content inside cards and nested panes. */ +@media(max-width:850px){ + :global(html),:global(body),:global(#app){height:auto;min-height:100%;max-height:none;overflow:auto} + .admin-root{height:auto;min-height:100dvh;overflow:visible} + .admin-shell{height:auto;min-height:100dvh;overflow:visible} + .admin-main{height:auto;min-height:0;overflow:visible} + .page-content{display:block;height:auto;min-height:0;overflow:visible} + .login-page{height:auto;min-height:100dvh;overflow:visible} + .login-card{max-height:none;overflow:visible} + + .overview-page{height:auto;min-height:0;overflow:visible} + .overview-page .overview-columns{grid-template-rows:auto;overflow:visible} + .overview-page .target-health-card,.overview-page .recent-events-card{height:auto;min-height:0;overflow:visible} + .overview-page .recent-events-card .event-list{max-height:none;overflow:visible} + + .server-page{height:auto;min-height:0;overflow:visible} + .server-page .settings-grid{height:auto;overflow:visible} + + .operations-page{height:auto;min-height:0;overflow:visible} + .operations-page .operations-primary,.operations-page .lower-operations{height:auto;min-height:0;overflow:visible;grid-auto-rows:auto;flex:none} + .operations-page .operation-card{height:auto;min-height:0;overflow:visible} + .operations-primary .table-wrap{max-height:none;overflow-x:auto;overflow-y:visible} + .operations-primary .invite-list{max-height:none;overflow:visible} + .logs-card .log-list,.audit-card .event-list{max-height:none;overflow:visible;flex:none} +}