更新Company页面的UI为FUI风格

This commit is contained in:
2025-12-24 13:26:12 +08:00
parent 7b418700c8
commit badc5865f4
3 changed files with 57 additions and 53 deletions

View File

@@ -635,27 +635,8 @@ const [currentMode, setCurrentMode] = useState('vertical');
mx={0} mx={0}
display="flex" display="flex"
flexDirection="column" flexDirection="column"
overflowX={mode === 'mainline' ? 'auto' : 'visible'} overflow="visible"
overflowY="visible"
zIndex={1} zIndex={1}
css={mode === 'mainline' ? {
"&::-webkit-scrollbar": {
height: "10px",
background: "#2d3748",
},
"&::-webkit-scrollbar-track": {
background: "#2d3748",
borderRadius: "5px",
},
"&::-webkit-scrollbar-thumb": {
background: "linear-gradient(90deg, #718096, #8a9bb0)",
borderRadius: "5px",
border: "2px solid #2d3748",
},
"&::-webkit-scrollbar-thumb:hover": {
background: "linear-gradient(90deg, #a0aec0, #b8c5d4)",
},
} : undefined}
> >
{/* 内容区域 - 撑满剩余高度 */} {/* 内容区域 - 撑满剩余高度 */}
<Box flex="1" minH={0} position="relative"> <Box flex="1" minH={0} position="relative">

View File

@@ -62,7 +62,7 @@ const EventScrollList = React.memo(
return ( return (
<Box <Box
ref={scrollContainerRef} ref={scrollContainerRef}
overflow={mode === "mainline" ? "visible" : "hidden"} overflow="visible"
h="100%" h="100%"
pt={0} pt={0}
pb={mode === "mainline" ? 0 : 4} pb={mode === "mainline" ? 0 : 4}

View File

@@ -784,8 +784,7 @@ const MainlineTimelineViewComponent = forwardRef(
return ( return (
<Box <Box
display={display} display={display}
w="max-content" w="100%"
minW="100%"
bg={COLORS.containerBg} bg={COLORS.containerBg}
> >
{/* 顶部统计栏 - 固定不滚动 */} {/* 顶部统计栏 - 固定不滚动 */}
@@ -935,10 +934,33 @@ const MainlineTimelineViewComponent = forwardRef(
</HStack> </HStack>
</Flex> </Flex>
{/* 横向滚动容器 - 滚动条在卡片上方 */}
<Box
overflowX="auto"
overflowY="visible"
pb={2}
css={{
"&::-webkit-scrollbar": {
height: "10px",
},
"&::-webkit-scrollbar-track": {
background: COLORS.scrollbarTrackBg,
borderRadius: "5px",
},
"&::-webkit-scrollbar-thumb": {
background: COLORS.scrollbarThumbBg,
borderRadius: "5px",
},
"&::-webkit-scrollbar-thumb:hover": {
background: COLORS.scrollbarThumbHoverBg,
},
}}
>
{/* 主线卡片横向排列容器 */} {/* 主线卡片横向排列容器 */}
<HStack <HStack
spacing={3} spacing={3}
p={3} p={3}
pt={1}
align="stretch" align="stretch"
w="max-content" w="max-content"
> >
@@ -967,6 +989,7 @@ const MainlineTimelineViewComponent = forwardRef(
})} })}
</HStack> </HStack>
</Box> </Box>
</Box>
); );
} }
); );