更新Company页面的UI为FUI风格
This commit is contained in:
@@ -62,7 +62,7 @@ const EventScrollList = React.memo(
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
ref={scrollContainerRef}
|
ref={scrollContainerRef}
|
||||||
overflow="hidden"
|
overflow={mode === "mainline" ? "visible" : "hidden"}
|
||||||
h="100%"
|
h="100%"
|
||||||
pt={0}
|
pt={0}
|
||||||
pb={mode === "mainline" ? 0 : 4}
|
pb={mode === "mainline" ? 0 : 4}
|
||||||
|
|||||||
@@ -295,7 +295,8 @@ 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"}
|
||||||
h="100%"
|
minH="500px"
|
||||||
|
maxH="600px"
|
||||||
display="flex"
|
display="flex"
|
||||||
flexDirection="column"
|
flexDirection="column"
|
||||||
transition="all 0.3s ease"
|
transition="all 0.3s ease"
|
||||||
@@ -785,10 +786,30 @@ const MainlineTimelineViewComponent = forwardRef(
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
display={display}
|
display={display}
|
||||||
h="100%"
|
minH="600px"
|
||||||
|
h="auto"
|
||||||
w="100%"
|
w="100%"
|
||||||
bg={COLORS.containerBg}
|
bg={COLORS.containerBg}
|
||||||
overflow="hidden"
|
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
|
||||||
@@ -935,40 +956,11 @@ const MainlineTimelineViewComponent = forwardRef(
|
|||||||
</HStack>
|
</HStack>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{/* 主线卡片横向滚动容器 - 使用 column-reverse 让滚动条在顶部 */}
|
{/* 主线卡片横向排列容器 */}
|
||||||
<Box
|
|
||||||
h="calc(100% - 44px)"
|
|
||||||
display="flex"
|
|
||||||
flexDirection="column-reverse"
|
|
||||||
>
|
|
||||||
<Box
|
|
||||||
flex="1"
|
|
||||||
overflowX="auto"
|
|
||||||
overflowY="hidden"
|
|
||||||
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)`,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<HStack
|
<HStack
|
||||||
spacing={3}
|
spacing={3}
|
||||||
p={3}
|
p={3}
|
||||||
align="stretch"
|
align="stretch"
|
||||||
h="100%"
|
|
||||||
minW="max-content"
|
minW="max-content"
|
||||||
>
|
>
|
||||||
{mainlines.map((mainline) => {
|
{mainlines.map((mainline) => {
|
||||||
@@ -996,8 +988,6 @@ const MainlineTimelineViewComponent = forwardRef(
|
|||||||
})}
|
})}
|
||||||
</HStack>
|
</HStack>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
|
||||||
</Box>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user