Fix shorts panel heights: both capped at 36rem with scroll

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-11 04:05:25 -05:00
parent 7fa9cd6760
commit 8e34273c51

View File

@ -889,14 +889,15 @@ export default function ShortsPage() {
{!loading || status ? (
<>
<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">
<div className="mb-6 grid gap-4 xl:grid-cols-[1.4fr_1fr]">
<section className="flex flex-col rounded-2xl border border-white/10 bg-black/25 p-4" style={{maxHeight: "36rem"}}>
<div className="mb-3 flex shrink-0 items-center justify-between gap-2">
<h3 className="text-sm font-medium text-slate-100">频道配额({channels.length})</h3>
<span className="text-[11px] text-slate-500">
北京日 {beijingWindow || "—"} · 每频道强制 9 条/日
</span>
</div>
<div className="min-h-0 flex-1 overflow-y-auto pr-1">
<div className="grid gap-3 sm:grid-cols-2">
{(boardChannels.length ? boardChannels : channels.map((c) => ({
id: c.id,
@ -1005,9 +1006,10 @@ export default function ShortsPage() {
);
})}
</div>
</div>
</section>
<section className="flex flex-col rounded-2xl border border-white/10 bg-black/25 p-4 xl:h-full xl:min-h-0">
<section className="flex flex-col rounded-2xl border border-white/10 bg-black/25 p-4" style={{maxHeight: "36rem"}}>
<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" />