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,
|
chartCardStyles,
|
||||||
FUI_COLORS,
|
FUI_COLORS,
|
||||||
} from '../../../theme';
|
} from '../../../theme';
|
||||||
import './StockCompareModal.less';
|
|
||||||
|
|
||||||
const { Title, Text } = Typography;
|
const { Title, Text } = Typography;
|
||||||
|
|
||||||
@@ -142,7 +141,7 @@ const StockCompareModal: React.FC<StockCompareModalProps> = ({
|
|||||||
key: 'metric',
|
key: 'metric',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '25%',
|
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,
|
title: currentStockInfo?.stock_name || currentStock,
|
||||||
@@ -255,8 +254,6 @@ const StockCompareModal: React.FC<StockCompareModalProps> = ({
|
|||||||
pagination={false}
|
pagination={false}
|
||||||
size="middle"
|
size="middle"
|
||||||
showHeader
|
showHeader
|
||||||
rowClassName={() => 'compare-table-row'}
|
|
||||||
style={{ background: 'transparent' }}
|
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|||||||
@@ -89,9 +89,9 @@ export const antdDarkTheme = {
|
|||||||
headerBg: alpha('gold', 0.05),
|
headerBg: alpha('gold', 0.05),
|
||||||
headerColor: FUI_COLORS.text.muted,
|
headerColor: FUI_COLORS.text.muted,
|
||||||
headerSplitColor: fui.border('subtle'),
|
headerSplitColor: fui.border('subtle'),
|
||||||
rowHoverBg: alpha('gold', 0.1),
|
rowHoverBg: alpha('white', 0.08),
|
||||||
rowSelectedBg: alpha('gold', 0.15),
|
rowSelectedBg: alpha('white', 0.12),
|
||||||
rowSelectedHoverBg: alpha('gold', 0.18),
|
rowSelectedHoverBg: alpha('white', 0.15),
|
||||||
borderColor: fui.border('subtle'),
|
borderColor: fui.border('subtle'),
|
||||||
cellFontSize: 13,
|
cellFontSize: 13,
|
||||||
cellPaddingBlock: 14,
|
cellPaddingBlock: 14,
|
||||||
|
|||||||
Reference in New Issue
Block a user