滚动条样式更新

This commit is contained in:
2025-12-24 13:32:52 +08:00
parent badc5865f4
commit 75dd3ad994
2 changed files with 10 additions and 5 deletions

View File

@@ -638,8 +638,8 @@ const [currentMode, setCurrentMode] = useState('vertical');
overflow="visible" overflow="visible"
zIndex={1} zIndex={1}
> >
{/* 内容区域 - 撑满剩余高度 */} {/* 内容区域 */}
<Box flex="1" minH={0} position="relative"> <Box position="relative">
{/* Loading 蒙层 - 数据请求时显示 */} {/* Loading 蒙层 - 数据请求时显示 */}
{loading && ( {loading && (
<Box <Box

View File

@@ -936,12 +936,13 @@ const MainlineTimelineViewComponent = forwardRef(
{/* 横向滚动容器 - 滚动条在卡片上方 */} {/* 横向滚动容器 - 滚动条在卡片上方 */}
<Box <Box
overflowX="auto" overflowX="scroll"
overflowY="visible" overflowY="visible"
pb={2} pb={2}
css={{ sx={{
"&::-webkit-scrollbar": { "&::-webkit-scrollbar": {
height: "10px", height: "10px",
display: "block",
}, },
"&::-webkit-scrollbar-track": { "&::-webkit-scrollbar-track": {
background: COLORS.scrollbarTrackBg, background: COLORS.scrollbarTrackBg,
@@ -950,10 +951,13 @@ const MainlineTimelineViewComponent = forwardRef(
"&::-webkit-scrollbar-thumb": { "&::-webkit-scrollbar-thumb": {
background: COLORS.scrollbarThumbBg, background: COLORS.scrollbarThumbBg,
borderRadius: "5px", borderRadius: "5px",
minWidth: "40px",
}, },
"&::-webkit-scrollbar-thumb:hover": { "&::-webkit-scrollbar-thumb:hover": {
background: COLORS.scrollbarThumbHoverBg, background: COLORS.scrollbarThumbHoverBg,
}, },
scrollbarWidth: "thin",
scrollbarColor: `${COLORS.scrollbarThumbBg} ${COLORS.scrollbarTrackBg}`,
}} }}
> >
{/* 主线卡片横向排列容器 */} {/* 主线卡片横向排列容器 */}
@@ -962,7 +966,8 @@ const MainlineTimelineViewComponent = forwardRef(
p={3} p={3}
pt={1} pt={1}
align="stretch" align="stretch"
w="max-content" display="inline-flex"
minW="max-content"
> >
{mainlines.map((mainline) => { {mainlines.map((mainline) => {
const groupId = const groupId =