feat: 热门关键词展示一行,且不展示股票数量

This commit is contained in:
zdl
2025-11-06 12:37:37 +08:00
parent 935c933cb8
commit 42f1b2f24e

View File

@@ -122,7 +122,7 @@ const PopularKeywords = ({ onKeywordClick, keywords: propKeywords }) => {
wrap
style={{
alignItems: 'center',
maxHeight: '62px', // 约两行的高度 (每行约28-30px)
maxHeight: '29px', // 约两行的高度 (每行约28-30px)
overflow: 'hidden',
paddingRight: '90px' // 为右侧按钮留出空间
}}
@@ -166,13 +166,13 @@ const PopularKeywords = ({ onKeywordClick, keywords: propKeywords }) => {
}}>
{formatChangePct(item.change_pct)}
</span>
<span style={{
{/* <span style={{
marginLeft: 3,
fontSize: 10,
opacity: 0.75
}}>
({item.count})
</span>
}}> */}
{/* ({item.count}股) */}
{/* </span> */}
</Tag>
))}
</Space>
@@ -184,7 +184,7 @@ const PopularKeywords = ({ onKeywordClick, keywords: propKeywords }) => {
onClick={handleMoreClick}
style={{
position: 'absolute',
bottom: 0,
top: 0,
right: 0,
fontSize: 12,
padding: '0 4px',