更新Company页面的UI为FUI风格

This commit is contained in:
2025-12-24 13:21:06 +08:00
parent 1ed8c3e1ac
commit 7b418700c8
2 changed files with 26 additions and 28 deletions

View File

@@ -635,8 +635,27 @@ const [currentMode, setCurrentMode] = useState('vertical');
mx={0} mx={0}
display="flex" display="flex"
flexDirection="column" flexDirection="column"
overflow="visible" overflowX={mode === 'mainline' ? 'auto' : '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

@@ -295,8 +295,6 @@ const MainlineCard = React.memo(
borderTopColor={`${colorScheme}.500`} borderTopColor={`${colorScheme}.500`}
minW={isExpanded ? "320px" : "280px"} minW={isExpanded ? "320px" : "280px"}
maxW={isExpanded ? "380px" : "320px"} maxW={isExpanded ? "380px" : "320px"}
minH="500px"
maxH="600px"
display="flex" display="flex"
flexDirection="column" flexDirection="column"
transition="all 0.3s ease" transition="all 0.3s ease"
@@ -786,32 +784,11 @@ const MainlineTimelineViewComponent = forwardRef(
return ( return (
<Box <Box
display={display} display={display}
minH="600px" w="max-content"
h="auto" minW="100%"
w="100%"
bg={COLORS.containerBg} bg={COLORS.containerBg}
overflowY="visible"
overflowX="auto"
css={{
"&::-webkit-scrollbar": {
height: "12px",
background: COLORS.scrollbarTrackBg,
},
"&::-webkit-scrollbar-track": {
background: COLORS.scrollbarTrackBg,
borderRadius: "6px",
},
"&::-webkit-scrollbar-thumb": {
background: `linear-gradient(90deg, ${COLORS.scrollbarThumbBg}, #8a9bb0)`,
borderRadius: "6px",
border: `2px solid ${COLORS.scrollbarTrackBg}`,
},
"&::-webkit-scrollbar-thumb:hover": {
background: `linear-gradient(90deg, ${COLORS.scrollbarThumbHoverBg}, #b8c5d4)`,
},
}}
> >
{/* 顶部统计栏 */} {/* 顶部统计栏 - 固定不滚动 */}
<Flex <Flex
justify="space-between" justify="space-between"
align="center" align="center"
@@ -820,6 +797,8 @@ const MainlineTimelineViewComponent = forwardRef(
bg={COLORS.statBarBg} bg={COLORS.statBarBg}
borderBottomWidth="1px" borderBottomWidth="1px"
borderBottomColor={COLORS.cardBorderColor} borderBottomColor={COLORS.cardBorderColor}
position="sticky"
left={0}
> >
<HStack spacing={4}> <HStack spacing={4}>
<HStack spacing={2}> <HStack spacing={2}>
@@ -961,7 +940,7 @@ const MainlineTimelineViewComponent = forwardRef(
spacing={3} spacing={3}
p={3} p={3}
align="stretch" align="stretch"
minW="max-content" w="max-content"
> >
{mainlines.map((mainline) => { {mainlines.map((mainline) => {
const groupId = const groupId =