事件中心UI优化

This commit is contained in:
2025-11-07 09:45:42 +08:00
parent a3810499cc
commit 67c7fa49e8
5 changed files with 234 additions and 140 deletions

View File

@@ -3,7 +3,7 @@
import React from 'react';
import {
SimpleGrid,
VStack,
} from '@chakra-ui/react';
import StockListItem from './StockListItem';
@@ -29,7 +29,7 @@ const RelatedStocksSection = ({
}
return (
<SimpleGrid columns={{ base: 1, md: 2, lg: 3 }} spacing={4}>
<VStack align="stretch" spacing={3}>
{stocks.map((stock, index) => (
<StockListItem
key={index}
@@ -40,7 +40,7 @@ const RelatedStocksSection = ({
onWatchlistToggle={onWatchlistToggle}
/>
))}
</SimpleGrid>
</VStack>
);
};