修复heropanel无法下拉背景页面

This commit is contained in:
2026-01-13 08:16:14 +08:00
parent 29f6429c55
commit 38f0885a85

View File

@@ -2078,24 +2078,25 @@ const DetailModal = ({ isOpen, onClose, selectedDate, ztDetail, events, loading
<DrawerHeader borderBottom="1px solid rgba(255,215,0,0.2)" color="white" flexShrink={0}> <DrawerHeader borderBottom="1px solid rgba(255,215,0,0.2)" color="white" flexShrink={0}>
{selectedContent?.title} {selectedContent?.title}
</DrawerHeader> </DrawerHeader>
<DrawerBody <DrawerBody p={0} overflow="hidden">
py={6}
flex="1"
overflowY="scroll"
minH={0}
sx={{
'&::-webkit-scrollbar': { width: '8px' },
'&::-webkit-scrollbar-track': { background: 'rgba(255,255,255,0.05)', borderRadius: '4px' },
'&::-webkit-scrollbar-thumb': { background: 'rgba(255,215,0,0.4)', borderRadius: '4px' },
'&::-webkit-scrollbar-thumb:hover': { background: 'rgba(255,215,0,0.6)' },
}}
>
<Box <Box
className="markdown-content" className="markdown-content"
color="whiteAlpha.900" color="whiteAlpha.900"
fontSize="md" fontSize="md"
lineHeight="1.8" lineHeight="1.8"
p={6}
h="calc(100vh - 80px)"
overflowY="auto"
style={{
overflowY: 'auto',
maxHeight: 'calc(100vh - 80px)',
}}
sx={{ sx={{
// 滚动条样式
'&::-webkit-scrollbar': { width: '8px' },
'&::-webkit-scrollbar-track': { background: 'rgba(255,255,255,0.05)', borderRadius: '4px' },
'&::-webkit-scrollbar-thumb': { background: 'rgba(255,215,0,0.4)', borderRadius: '4px' },
'&::-webkit-scrollbar-thumb:hover': { background: 'rgba(255,215,0,0.6)' },
// 确保所有文本元素都使用浅色 // 确保所有文本元素都使用浅色
'& *': { color: 'inherit' }, '& *': { color: 'inherit' },
'& p': { mb: 4, color: 'whiteAlpha.900' }, '& p': { mb: 4, color: 'whiteAlpha.900' },