update:1.修复1-n模式下点击保存章节内容导致章节对应大纲999的问题 2.优化项目主页头部统计数据UI样式

This commit is contained in:
xiamuceer
2025-12-20 15:35:55 +08:00
parent ca6165cb64
commit 6886d903fe
4 changed files with 51 additions and 20 deletions
+12 -12
View File
@@ -718,15 +718,15 @@ export default function ProjectList() {
border: '1px solid rgba(255, 255, 255, 0.3)',
backdropFilter: 'blur(10px)',
boxShadow: '0 4px 16px rgba(0, 0, 0, 0.08)',
padding: isMobile ? '8px 4px' : '24px'
padding: isMobile ? '8px 4px' : '12px'
}}
styles={{ body: { padding: isMobile ? '4px' : '24px' } }}
styles={{ body: { padding: isMobile ? '4px' : '12px' } }}
>
<Statistic
title={
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', marginBottom: isMobile ? 4 : 8 }}>
<span style={{ fontSize: isMobile ? 16 : 14, color: 'rgba(255,255,255,0.9)', marginRight: isMobile ? 0 : 8 }}>📚</span>
{!isMobile && <span style={{ color: 'rgba(255,255,255,0.8)' }}></span>}
<span style={{ fontSize: isMobile ? 16 : 24, color: 'rgba(255,255,255,0.9)', marginRight: isMobile ? 0 : 8 }}>📚</span>
{!isMobile && <span style={{ color: 'rgba(255,255,255,0.8)', fontSize: 16 }}></span>}
{isMobile && <div style={{ fontSize: 11, color: 'rgba(255,255,255,0.8)', marginTop: 2 }}></div>}
</div>
}
@@ -750,15 +750,15 @@ export default function ProjectList() {
border: '1px solid rgba(255, 255, 255, 0.3)',
backdropFilter: 'blur(10px)',
boxShadow: '0 4px 16px rgba(0, 0, 0, 0.08)',
padding: isMobile ? '8px 4px' : '24px'
padding: isMobile ? '8px 4px' : '12px'
}}
styles={{ body: { padding: isMobile ? '4px' : '24px' } }}
styles={{ body: { padding: isMobile ? '4px' : '12px' } }}
>
<Statistic
title={
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', marginBottom: isMobile ? 4 : 8 }}>
<span style={{ fontSize: isMobile ? 16 : 14, color: 'rgba(255,255,255,0.9)', marginRight: isMobile ? 0 : 8 }}></span>
{!isMobile && <span style={{ color: 'rgba(255,255,255,0.8)' }}></span>}
<span style={{ fontSize: isMobile ? 16 : 24, color: 'rgba(255,255,255,0.9)', marginRight: isMobile ? 0 : 8 }}></span>
{!isMobile && <span style={{ color: 'rgba(255,255,255,0.8)', fontSize: 16 }}></span>}
{isMobile && <div style={{ fontSize: 11, color: 'rgba(255,255,255,0.8)', marginTop: 2 }}></div>}
</div>
}
@@ -782,15 +782,15 @@ export default function ProjectList() {
border: '1px solid rgba(255, 255, 255, 0.3)',
backdropFilter: 'blur(10px)',
boxShadow: '0 4px 16px rgba(0, 0, 0, 0.08)',
padding: isMobile ? '8px 4px' : '24px'
padding: isMobile ? '8px 4px' : '12px'
}}
styles={{ body: { padding: isMobile ? '4px' : '24px' } }}
styles={{ body: { padding: isMobile ? '4px' : '12px' } }}
>
<Statistic
title={
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', marginBottom: isMobile ? 4 : 8 }}>
<span style={{ fontSize: isMobile ? 16 : 14, color: 'rgba(255,255,255,0.9)', marginRight: isMobile ? 0 : 8 }}>📝</span>
{!isMobile && <span style={{ color: 'rgba(255,255,255,0.8)' }}></span>}
<span style={{ fontSize: isMobile ? 16 : 24, color: 'rgba(255,255,255,0.9)', marginRight: isMobile ? 0 : 8 }}>📝</span>
{!isMobile && <span style={{ color: 'rgba(255,255,255,0.8)', fontSize: 16 }}></span>}
{isMobile && <div style={{ fontSize: 11, color: 'rgba(255,255,255,0.8)', marginTop: 2 }}></div>}
</div>
}
+5 -5
View File
@@ -19,11 +19,11 @@ interface SponsorOption {
}
const sponsorOptions: SponsorOption[] = [
{ amount: 5, label: '入门支持', image: '/5.png', description: '¥5' },
{ amount: 10, label: '进阶支持', image: '/10.png', description: '¥10' },
{ amount: 20, label: '标准支持', image: '/20.png', description: '¥20' },
{ amount: 50, label: '高级支持', image: '/50.png', description: '¥50' },
{ amount: 'custom', label: '任意金额', image: '/xx.png', description: '自定义' },
{ amount: 5, label: '🌶️ 一包辣条', image: '/5.png', description: '¥5' },
{ amount: 10, label: '🍱 一顿拼好饭', image: '/10.png', description: '¥10' },
{ amount: 20, label: '🧋 一杯奶茶', image: '/20.png', description: '¥20' },
{ amount: 50, label: '🍖 一次烧烤', image: '/50.png', description: '¥50' },
{ amount: 'custom', label: '💰 任意金额', image: '/xx.png', description: '自定义' },
];
const benefits = [