滚动条样式更新
This commit is contained in:
@@ -934,13 +934,13 @@ const MainlineTimelineViewComponent = forwardRef(
|
|||||||
</HStack>
|
</HStack>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{/* 横向滚动容器 - 滚动条在卡片上方 */}
|
{/* 横向滚动容器 - 滚动条在顶部 */}
|
||||||
<Box className="mainline-scroll-container" pb={2}>
|
<Box className="mainline-scroll-container">
|
||||||
{/* 主线卡片横向排列容器 */}
|
{/* 主线卡片横向排列容器 */}
|
||||||
<HStack
|
<HStack
|
||||||
|
className="mainline-scroll-content"
|
||||||
spacing={3}
|
spacing={3}
|
||||||
p={3}
|
p={3}
|
||||||
pt={1}
|
|
||||||
align="stretch"
|
align="stretch"
|
||||||
display="inline-flex"
|
display="inline-flex"
|
||||||
w="max-content"
|
w="max-content"
|
||||||
|
|||||||
@@ -106,12 +106,19 @@
|
|||||||
font-size: 12px !important;
|
font-size: 12px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==================== 主线视图横向滚动条 ==================== */
|
/* ==================== 主线视图横向滚动条(顶部显示) ==================== */
|
||||||
|
|
||||||
.mainline-scroll-container {
|
.mainline-scroll-container {
|
||||||
overflow-x: scroll !important;
|
overflow-x: scroll !important;
|
||||||
overflow-y: visible !important;
|
overflow-y: visible !important;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
/* 翻转容器,让滚动条到顶部 */
|
||||||
|
transform: rotateX(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 内容翻转回来 */
|
||||||
|
.mainline-scroll-content {
|
||||||
|
transform: rotateX(180deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainline-scroll-container::-webkit-scrollbar {
|
.mainline-scroll-container::-webkit-scrollbar {
|
||||||
|
|||||||
Reference in New Issue
Block a user