fix: UI修复
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* StockCompareModal 样式
|
||||
*/
|
||||
|
||||
// 禁用表格行 hover 效果
|
||||
.compare-table-row {
|
||||
> td {
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr.compare-table-row:hover > td,
|
||||
.ant-table-tbody > tr.compare-table-row:hover > td.ant-table-cell,
|
||||
.ant-table-tbody > tr.compare-table-row > td.ant-table-cell-row-hover {
|
||||
background: transparent !important;
|
||||
}
|
||||
@@ -24,7 +24,6 @@ import {
|
||||
chartCardStyles,
|
||||
FUI_COLORS,
|
||||
} from '../../../theme';
|
||||
import './StockCompareModal.less';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
|
||||
@@ -142,7 +141,7 @@ const StockCompareModal: React.FC<StockCompareModalProps> = ({
|
||||
key: 'metric',
|
||||
align: 'center',
|
||||
width: '25%',
|
||||
render: (text) => <span style={{ color: FUI_COLORS.text.muted }}>{text}</span>,
|
||||
render: (text) => <span style={{ color: FUI_COLORS.gold[400] }}>{text}</span>,
|
||||
},
|
||||
{
|
||||
title: currentStockInfo?.stock_name || currentStock,
|
||||
@@ -255,8 +254,6 @@ const StockCompareModal: React.FC<StockCompareModalProps> = ({
|
||||
pagination={false}
|
||||
size="middle"
|
||||
showHeader
|
||||
rowClassName={() => 'compare-table-row'}
|
||||
style={{ background: 'transparent' }}
|
||||
/>
|
||||
</Card>
|
||||
|
||||
|
||||
@@ -89,9 +89,9 @@ export const antdDarkTheme = {
|
||||
headerBg: alpha('gold', 0.05),
|
||||
headerColor: FUI_COLORS.text.muted,
|
||||
headerSplitColor: fui.border('subtle'),
|
||||
rowHoverBg: alpha('gold', 0.1),
|
||||
rowSelectedBg: alpha('gold', 0.15),
|
||||
rowSelectedHoverBg: alpha('gold', 0.18),
|
||||
rowHoverBg: alpha('white', 0.08),
|
||||
rowSelectedBg: alpha('white', 0.12),
|
||||
rowSelectedHoverBg: alpha('white', 0.15),
|
||||
borderColor: fui.border('subtle'),
|
||||
cellFontSize: 13,
|
||||
cellPaddingBlock: 14,
|
||||
|
||||
Reference in New Issue
Block a user