fix: 修复统计报表移动端适屏问题

- Shell main 添加 min-w-0 overflow-x-hidden 防止 flex 子元素溢出
- trend API 排除当天数据 (stat_date < CURDATE()),只返回前7天
- StatisticsView 移除移动端 overflow-hidden,改为仅 landscape 模式
- 图表和列表卡片在移动端正确显示全宽内容

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-04-01 21:36:25 +08:00
parent ee3db94c75
commit 2a10c5ae31
3 changed files with 5 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ export function Shell({ modules }: { modules: ModuleConfig[] }) {
</nav>
{/* 内容区 */}
<main className="flex-1 md:ml-16 pb-16 md:pb-0">
<main className="flex-1 md:ml-16 pb-16 md:pb-0 min-w-0 overflow-x-hidden">
{ActiveComponent && <ActiveComponent />}
</main>