diff --git a/src/modules/mileage/MonitoringView.tsx b/src/modules/mileage/MonitoringView.tsx index b26ae05..d0886bb 100644 --- a/src/modules/mileage/MonitoringView.tsx +++ b/src/modules/mileage/MonitoringView.tsx @@ -241,82 +241,53 @@ export default function MonitoringView() { initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} - className="fixed inset-0 z-[100] bg-slate-950 flex flex-row p-4 gap-4 overflow-hidden portrait:origin-top-left" - style={{ - ...(typeof window !== 'undefined' && window.innerHeight > window.innerWidth - ? { transform: 'rotate(90deg) translateY(-100%)', width: window.innerHeight, height: window.innerWidth, transformOrigin: 'top left' } - : {}), - }} + className="fixed inset-0 z-[100] bg-slate-950 flex flex-col overflow-hidden" > - {/* Sidebar Stats */} -
+ {/* Top bar: title + KPI row + close */} +
-
-

全屏监控

+
+

全屏监控

-
- - {/* KPI Cards in Fullscreen */} -
-
-
今日总里程
-
- {stats.totalToday.toLocaleString()} - KM -
+ {/* KPI — single row */} +
+
+
今日总里程
+
{Math.round(stats.totalToday).toLocaleString()} km
-
-
累计总里程
-
- {stats.totalAll.toLocaleString()} - KM -
+
+
累计总里程
+
{Math.round(stats.totalAll).toLocaleString()} km
-
-
监控台数
-
- {stats.vehicleCount} - -
+
+
监控台数
+
{stats.vehicleCount}
-
-
- 平均单车 ({sortBy === 'today' ? '今日' : '累计'}) -
-
- {(stats.vehicleCount > 0 ? (sortBy === 'today' ? stats.totalToday : stats.totalAll) / stats.vehicleCount : 0).toFixed(0)} - KM -
+
+
平均单车
+
{(stats.vehicleCount > 0 ? (sortBy === 'today' ? stats.totalToday : stats.totalAll) / stats.vehicleCount : 0).toFixed(0)} km
- {/* Main Table Area */} -
-
- 车辆实时明细数据 -
+ {/* Table Area */} +
+
+ 车辆实时明细数据 +
在线