fixbug: limit-analyse日历UI调整

This commit is contained in:
zdl
2025-11-19 19:13:12 +08:00
parent 5f6b4b083b
commit 3eb31c99dc
2 changed files with 11 additions and 8 deletions

View File

@@ -195,9 +195,12 @@ const EnhancedCalendar = ({
onClick={() => onDateChange(date)}
transition="all 0.2s"
cursor="pointer"
display="flex"
alignItems="center"
justifyContent="center"
>
<Text
fontSize={compact ? 'md' : 'lg'}
fontSize={compact ? 'lg' : 'xl'}
fontWeight={isToday || isSelected ? 'bold' : 'normal'}
color={isSelected ? 'blue.600' : 'gray.700'}
>
@@ -206,13 +209,13 @@ const EnhancedCalendar = ({
{hasData && (
<Badge
position="absolute"
top="2px"
right="2px"
top="4px"
right="4px"
size={compact ? 'sm' : 'md'}
colorScheme={getDateBadgeColor(dateData.count)}
fontSize={compact ? '10px' : '11px'}
fontSize={compact ? '9px' : '10px'}
px={compact ? 1 : 2}
minW={compact ? '22px' : '28px'}
minW={compact ? '20px' : '24px'}
borderRadius="full"
>
{dateData.count}
@@ -221,7 +224,7 @@ const EnhancedCalendar = ({
{isToday && (
<Text
position="absolute"
bottom="2px"
bottom="4px"
left="50%"
transform="translateX(-50%)"
fontSize={compact ? '9px' : '10px'}

View File

@@ -444,7 +444,6 @@ export default function LimitAnalyse() {
borderColor="whiteAlpha.300"
backdropFilter="saturate(180%) blur(10px)"
w="full"
minH="420px"
>
<CardBody p={4}>
<EnhancedCalendar
@@ -453,8 +452,9 @@ export default function LimitAnalyse() {
availableDates={availableDates}
compact
hideSelectionInfo
hideLegend
width="100%"
cellHeight={10}
cellHeight={16}
/>
</CardBody>
</Card>