fix: reorganize video upload dashboard
This commit is contained in:
parent
0a7c195692
commit
e201fe0135
1 changed files with 105 additions and 108 deletions
|
|
@ -2280,24 +2280,6 @@ export default function App() {
|
|||
Добавить ролик
|
||||
</Button>
|
||||
</form>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{activeView === "settings" ? (
|
||||
<SettingsPanel onBack={() => setActiveView("dashboard")} onSaved={handleSettingsSaved} />
|
||||
) : <>
|
||||
<section className="workspace-grid grid gap-5 xl:grid-cols-2">
|
||||
<Card className="work-column min-w-0">
|
||||
<CardHeader>
|
||||
<div className="flex items-start justify-between gap-4">
|
||||
<div>
|
||||
<CardTitle>Ролики</CardTitle>
|
||||
<CardDescription>Все ролики, прогресс обработки, логи и готовые черновики в одном списке.</CardDescription>
|
||||
</div>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardContent className="work-list flex max-h-[72vh] flex-col gap-2 overflow-y-auto">
|
||||
<div className="grid gap-2 xl:grid-cols-[minmax(0,1fr)_13rem]">
|
||||
<section
|
||||
className={`local-video-upload rounded-md border border-dashed p-3 transition-colors ${
|
||||
localVideoDragActive ? "border-primary bg-primary/5" : "border-border bg-background"
|
||||
|
|
@ -2385,8 +2367,13 @@ export default function App() {
|
|||
</div>
|
||||
) : null}
|
||||
</section>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
<section className={`rounded-md border bg-background p-3 ${videoStorageLow ? "border-amber-300 bg-amber-50/60" : "border-border"}`} aria-live="polite">
|
||||
{activeView === "settings" ? (
|
||||
<SettingsPanel onBack={() => setActiveView("dashboard")} onSaved={handleSettingsSaved} />
|
||||
) : <>
|
||||
<section className={`video-storage-strip rounded-md border bg-background p-3 ${videoStorageLow ? "border-amber-300 bg-amber-50/60" : "border-border"}`} aria-live="polite">
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
<p className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">Видео на диске</p>
|
||||
{videoStorage ? <span className="text-xs tabular-nums text-muted-foreground">{videoStoragePercent}%</span> : null}
|
||||
|
|
@ -2404,7 +2391,17 @@ export default function App() {
|
|||
<p className="mt-3 text-xs leading-5 text-muted-foreground">Данные о диске недоступны.</p>
|
||||
)}
|
||||
</section>
|
||||
<section className="workspace-grid grid gap-5 xl:grid-cols-2">
|
||||
<Card className="work-column min-w-0">
|
||||
<CardHeader>
|
||||
<div className="flex items-start justify-between gap-4">
|
||||
<div>
|
||||
<CardTitle>Ролики</CardTitle>
|
||||
<CardDescription>Все ролики, прогресс обработки, логи и готовые черновики в одном списке.</CardDescription>
|
||||
</div>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardContent className="work-list flex max-h-[72vh] flex-col gap-2 overflow-y-auto">
|
||||
{productionVideos.length > 0 ? (
|
||||
productionVideos.map((video) => {
|
||||
const draftArticles = video.articles?.filter((article) => article.status !== "published") ?? []
|
||||
|
|
|
|||
Loading…
Reference in a new issue