|
|
@@ -231,8 +231,8 @@ export function OverviewPanel({ currencyCode = "USD", isAdmin = false }: Overvie
|
|
|
|
|
|
{/* 右侧:活跃 Session 列表 */}
|
|
|
<div className="lg:col-span-9">
|
|
|
- <div className="border rounded-lg bg-card">
|
|
|
- <div className="px-4 py-3 border-b flex items-center justify-between">
|
|
|
+ <div className="border rounded-lg bg-card h-full flex flex-col">
|
|
|
+ <div className="px-4 py-3 border-b flex items-center justify-between flex-shrink-0">
|
|
|
<div className="flex items-center gap-2">
|
|
|
<Activity className="h-4 w-4 text-primary" />
|
|
|
<h3 className="font-semibold text-sm">活跃 Session</h3>
|
|
|
@@ -248,14 +248,14 @@ export function OverviewPanel({ currencyCode = "USD", isAdmin = false }: Overvie
|
|
|
</button>
|
|
|
</div>
|
|
|
|
|
|
- <div className="max-h-[200px] overflow-y-auto">
|
|
|
+ <div className="flex-1 overflow-y-auto min-h-0">
|
|
|
{isLoading && metrics.recentSessions.length === 0 ? (
|
|
|
- <div className="flex items-center justify-center h-[200px] text-muted-foreground text-sm">
|
|
|
+ <div className="flex items-center justify-center h-full text-muted-foreground text-sm">
|
|
|
<Loader2 className="h-4 w-4 animate-spin mr-2" />
|
|
|
加载中...
|
|
|
</div>
|
|
|
) : metrics.recentSessions.length === 0 ? (
|
|
|
- <div className="flex items-center justify-center h-[200px] text-muted-foreground text-sm">
|
|
|
+ <div className="flex items-center justify-center h-full text-muted-foreground text-sm">
|
|
|
暂无活跃 Session
|
|
|
</div>
|
|
|
) : (
|