Shorts panels: natural height, no forced stretch

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

View File

@ -889,15 +889,14 @@ export default function ShortsPage() {
{!loading || status ? (
<>
<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">
<div className="mb-6 grid gap-4 xl:grid-cols-[1.4fr_1fr] xl:items-start">
<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>
<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,
@ -1006,10 +1005,9 @@ export default function ShortsPage() {
);
})}
</div>
</div>
</section>
<section className="flex flex-col rounded-2xl border border-white/10 bg-black/25 p-4" style={{maxHeight: "36rem"}}>
<section className="flex flex-col rounded-2xl border border-white/10 bg-black/25 p-4 xl:self-start">
<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" />