mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
fix: 限制看板页仅学生列表区域滚动
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user