mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dbefd534c7
commit
e5ccf1a9e4
2 files changed
+8
No files matched your search
@@ -124,6 +124,13 @@ export default function MediaDetail({ id, token, categories, onError, onDeleted,
|
||||
<span>상태:</span> {STATUS[post.status]}
|
||||
</div>
|
||||
<hr className={styles.rule} />
|
||||
{post.description && (
|
||||
<>
|
||||
{/* pre-wrap: 인스타 본문의 줄바꿈을 그대로 보여줌 */}
|
||||
<div style={{ whiteSpace: "pre-wrap" }}>{post.description}</div>
|
||||
<hr className={styles.rule} />
|
||||
</>
|
||||
)}
|
||||
{post.status === "DOWNLOADING" ? (
|
||||
<div>
|
||||
<span className={styles.accent}>{post.progress === null ? "다운로드 준비 중..." : bar(post.progress, 20)}</span>
|
||||
|
||||
@@ -38,6 +38,7 @@ export interface MediaFile {
|
||||
export interface MediaPost {
|
||||
id: number;
|
||||
title: string;
|
||||
description: string | null; // 원본 게시물 설명글 (인스타 본문). 없으면 null
|
||||
sourceUrl: string;
|
||||
category: string | null; // null = 미분류
|
||||
status: "DOWNLOADING" | "DONE" | "FAILED";
|
||||
|
||||
Reference in new issue
Block a user