滚动条样式更新
This commit is contained in:
@@ -935,31 +935,7 @@ const MainlineTimelineViewComponent = forwardRef(
|
|||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{/* 横向滚动容器 - 滚动条在卡片上方 */}
|
{/* 横向滚动容器 - 滚动条在卡片上方 */}
|
||||||
<Box
|
<Box className="mainline-scroll-container" pb={2}>
|
||||||
overflowX="scroll"
|
|
||||||
overflowY="visible"
|
|
||||||
pb={2}
|
|
||||||
sx={{
|
|
||||||
"&::-webkit-scrollbar": {
|
|
||||||
height: "10px",
|
|
||||||
display: "block",
|
|
||||||
},
|
|
||||||
"&::-webkit-scrollbar-track": {
|
|
||||||
background: COLORS.scrollbarTrackBg,
|
|
||||||
borderRadius: "5px",
|
|
||||||
},
|
|
||||||
"&::-webkit-scrollbar-thumb": {
|
|
||||||
background: COLORS.scrollbarThumbBg,
|
|
||||||
borderRadius: "5px",
|
|
||||||
minWidth: "40px",
|
|
||||||
},
|
|
||||||
"&::-webkit-scrollbar-thumb:hover": {
|
|
||||||
background: COLORS.scrollbarThumbHoverBg,
|
|
||||||
},
|
|
||||||
scrollbarWidth: "thin",
|
|
||||||
scrollbarColor: `${COLORS.scrollbarThumbBg} ${COLORS.scrollbarTrackBg}`,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{/* 主线卡片横向排列容器 */}
|
{/* 主线卡片横向排列容器 */}
|
||||||
<HStack
|
<HStack
|
||||||
spacing={3}
|
spacing={3}
|
||||||
@@ -967,7 +943,7 @@ const MainlineTimelineViewComponent = forwardRef(
|
|||||||
pt={1}
|
pt={1}
|
||||||
align="stretch"
|
align="stretch"
|
||||||
display="inline-flex"
|
display="inline-flex"
|
||||||
minW="max-content"
|
w="max-content"
|
||||||
>
|
>
|
||||||
{mainlines.map((mainline) => {
|
{mainlines.map((mainline) => {
|
||||||
const groupId =
|
const groupId =
|
||||||
|
|||||||
@@ -105,3 +105,37 @@
|
|||||||
color: #a0aec0 !important;
|
color: #a0aec0 !important;
|
||||||
font-size: 12px !important;
|
font-size: 12px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==================== 主线视图横向滚动条 ==================== */
|
||||||
|
|
||||||
|
.mainline-scroll-container {
|
||||||
|
overflow-x: scroll !important;
|
||||||
|
overflow-y: visible !important;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainline-scroll-container::-webkit-scrollbar {
|
||||||
|
height: 10px !important;
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainline-scroll-container::-webkit-scrollbar-track {
|
||||||
|
background: #2d3748 !important;
|
||||||
|
border-radius: 5px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainline-scroll-container::-webkit-scrollbar-thumb {
|
||||||
|
background: #718096 !important;
|
||||||
|
border-radius: 5px !important;
|
||||||
|
min-width: 40px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainline-scroll-container::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #a0aec0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Firefox 滚动条 */
|
||||||
|
.mainline-scroll-container {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: #718096 #2d3748;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user