fix: 限制看板页仅学生列表区域滚动

This commit is contained in:
JSR
2026-03-28 15:16:05 +08:00
parent 3f3bfbf284
commit 3facd398de
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -318,6 +318,11 @@ html.platform-macos #root {
min-height: 100%; min-height: 100%;
} }
.ss-route-page.is-board-page {
height: 100%;
overflow: hidden;
}
.ss-route-page.is-subpage-enter { .ss-route-page.is-subpage-enter {
animation: ss-subpage-enter 240ms cubic-bezier(0.22, 1, 0.36, 1); animation: ss-subpage-enter 240ms cubic-bezier(0.22, 1, 0.36, 1);
} }
+3 -2
View File
@@ -92,6 +92,7 @@ export function ContentArea({
const isSubPage = location.pathname !== "/" && !location.pathname.startsWith("/home") const isSubPage = location.pathname !== "/" && !location.pathname.startsWith("/home")
const shouldAnimateSubPage = isPortraitMode && isSubPage const shouldAnimateSubPage = isPortraitMode && isSubPage
const normalizedPath = location.pathname === "/" ? "/home" : location.pathname const normalizedPath = location.pathname === "/" ? "/home" : location.pathname
const isBoardPage = normalizedPath.startsWith("/boards")
const isMobileHeaderMode = isPortraitMode && isMobileDevice && !immersiveMode const isMobileHeaderMode = isPortraitMode && isMobileDevice && !immersiveMode
const isPrimaryMobilePage = const isPrimaryMobilePage =
normalizedPath.startsWith("/home") || normalizedPath.startsWith("/settings") normalizedPath.startsWith("/home") || normalizedPath.startsWith("/settings")
@@ -317,7 +318,7 @@ export function ContentArea({
<Content <Content
style={{ style={{
flex: 1, flex: 1,
overflowY: "auto", overflowY: isBoardPage ? "hidden" : "auto",
overflowX: "hidden", overflowX: "hidden",
paddingBottom: bottomInset ? `${bottomInset}px` : 0, paddingBottom: bottomInset ? `${bottomInset}px` : 0,
}} }}
@@ -340,7 +341,7 @@ export function ContentArea({
> >
<div <div
key={location.pathname} key={location.pathname}
className={`ss-route-page${shouldAnimateSubPage ? " is-subpage-enter" : ""}`} className={`ss-route-page${shouldAnimateSubPage ? " is-subpage-enter" : ""}${isBoardPage ? " is-board-page" : ""}`}
> >
<Routes> <Routes>
<Route <Route