feat: 优化支出趋势图表和财务概览功能。

This commit is contained in:
2026-01-26 09:47:34 +08:00
parent a4769bc610
commit 6de89918d7
2 changed files with 50 additions and 57 deletions

View File

@@ -115,25 +115,21 @@ export const SpendingTrendChart: React.FC<SpendingTrendChartProps> = ({
}; };
return ( return (
<div className="glass-card" style={{ padding: '1.5rem', marginTop: 'var(--spacing-xl)' }}> <div style={{ width: '100%', height: '100%' }}>
<h3 style={{ <div className="section-header" style={{ marginBottom: '1rem', borderBottom: 'none', paddingBottom: 0 }}>
margin: '0 0 1rem 0', <h2 style={{
fontSize: '1.25rem', fontSize: '1.125rem',
color: 'var(--color-text)', fontWeight: 700,
margin: 0,
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
gap: '0.5rem' gap: '0.5rem',
color: 'var(--color-text)'
}}> }}>
<span style={{
width: '4px',
height: '20px',
background: 'var(--color-primary)',
borderRadius: '2px',
display: 'inline-block'
}} />
7 7
</h3> </h2>
<ReactECharts option={option} style={{ height: '300px' }} /> </div>
<ReactECharts option={option} style={{ height: '300px', width: '100%' }} />
</div> </div>
); );
}; };

View File

@@ -259,7 +259,6 @@ function Home() {
return ( return (
<div className="home-page"> <div className="home-page">
<header className="home-header">
<header className="home-header"> <header className="home-header">
<div className="home-greeting animate-slide-up"> <div className="home-greeting animate-slide-up">
<div className="greeting-top-row"> <div className="greeting-top-row">
@@ -300,8 +299,6 @@ function Home() {
</div> </div>
</header> </header>
</header>
<main className="home-content"> <main className="home-content">
{/* Asset Dashboard - Requirement 8.1 */} {/* Asset Dashboard - Requirement 8.1 */}