Show live upcoming upload count and fix panel height

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-11 02:24:50 -05:00
parent 1112a4d055
commit dcc4f5fca9
2 changed files with 24 additions and 14 deletions

View File

@ -873,7 +873,7 @@ export default function ShortsPage() {
{!loading || status ? (
<>
<div className="mb-6 grid gap-4 xl:grid-cols-[1.4fr_1fr]">
<div className="mb-6 grid gap-4 xl:grid-cols-[1.4fr_1fr] xl:items-stretch">
<section className="rounded-2xl border border-white/10 bg-black/25 p-4">
<div className="mb-3 flex items-center justify-between gap-2">
<h3 className="text-sm font-medium text-slate-100">频道配额({channels.length})</h3>
@ -991,15 +991,20 @@ export default function ShortsPage() {
</div>
</section>
<section className="rounded-2xl border border-white/10 bg-black/25 p-4">
<div className="mb-3 flex items-center gap-2">
<Clock3 className="h-4 w-4 text-amber-300" />
<h3 className="text-sm font-medium text-slate-100">即将上传(错峰日程)</h3>
<section className="flex min-h-[24rem] flex-col rounded-2xl border border-white/10 bg-black/25 p-4 xl:h-full xl:min-h-0">
<div className="mb-3 flex items-center justify-between gap-3">
<div className="flex items-center gap-2">
<Clock3 className="h-4 w-4 text-amber-300" />
<h3 className="text-sm font-medium text-slate-100">即将上传(错峰日程)</h3>
</div>
<span className="rounded-full border border-amber-500/25 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-200">
素材 {upcoming.length}
</span>
</div>
<p className="mb-3 text-[11px] text-slate-500">
<p className="mb-3 shrink-0 text-[11px] text-slate-500">
北京 {status?.board?.beijing_hint || "—"} · 点击「立即上传」确认后发布 · 上传过程有进度提示
</p>
<div className="max-h-[28rem] space-y-2 overflow-y-auto pr-1">
<div className="min-h-0 flex-1 space-y-2 overflow-y-auto pr-1">
{upcoming.length === 0 ? (
<div className="rounded-xl border border-dashed border-white/10 px-3 py-8 text-center text-sm text-slate-500">
暂无排程。取样或开播入队后,成片会自动分散到今日各时段。

View File

@ -889,7 +889,7 @@ export default function ShortsPage() {
{!loading || status ? (
<>
<div className="mb-6 grid gap-4 xl:grid-cols-[1.4fr_1fr]">
<div className="mb-6 grid gap-4 xl:grid-cols-[1.4fr_1fr] xl:items-stretch">
<section className="rounded-2xl border border-white/10 bg-black/25 p-4">
<div className="mb-3 flex items-center justify-between gap-2">
<h3 className="text-sm font-medium text-slate-100">频道配额({channels.length})</h3>
@ -1007,15 +1007,20 @@ export default function ShortsPage() {
</div>
</section>
<section className="rounded-2xl border border-white/10 bg-black/25 p-4">
<div className="mb-3 flex items-center gap-2">
<Clock3 className="h-4 w-4 text-amber-300" />
<h3 className="text-sm font-medium text-slate-100">即将上传(错峰日程)</h3>
<section className="flex min-h-[24rem] flex-col rounded-2xl border border-white/10 bg-black/25 p-4 xl:h-full xl:min-h-0">
<div className="mb-3 flex items-center justify-between gap-3">
<div className="flex items-center gap-2">
<Clock3 className="h-4 w-4 text-amber-300" />
<h3 className="text-sm font-medium text-slate-100">即将上传(错峰日程)</h3>
</div>
<span className="rounded-full border border-amber-500/25 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-200">
素材 {upcoming.length}
</span>
</div>
<p className="mb-3 text-[11px] text-slate-500">
<p className="mb-3 shrink-0 text-[11px] text-slate-500">
北京 {status?.board?.beijing_hint || "—"} · 点击「立即上传」确认后发布 · 上传过程有进度提示
</p>
<div className="max-h-[28rem] space-y-2 overflow-y-auto pr-1">
<div className="min-h-0 flex-1 space-y-2 overflow-y-auto pr-1">
{upcoming.length === 0 ? (
<div className="rounded-xl border border-dashed border-white/10 px-3 py-8 text-center text-sm text-slate-500">
暂无排程。取样或开播入队后,成片会自动分散到今日各时段。