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