diff --git a/src/features/tech-log/presentation/studio/components/document-editor.tsx b/src/features/tech-log/presentation/studio/components/document-editor.tsx index 1893065..7dd53f7 100644 --- a/src/features/tech-log/presentation/studio/components/document-editor.tsx +++ b/src/features/tech-log/presentation/studio/components/document-editor.tsx @@ -1,3 +1,5 @@ +import { useState } from "react"; + import type { components } from "../../../contracts/studio/generated.ts"; import { usePreviewScrollSync } from "./use-preview-scroll-sync.ts"; import { EditorSectionToc } from "./editor-section-toc.tsx"; @@ -74,6 +76,12 @@ export function DocumentEditor({ || controller.draft.kind === "SETUP", ); const unplaced = issuesOutside(issues, [...COMMON_FIELD_PATHS, ...kindPaths]); + /* + 미리보기를 어떻게 볼지. 「넓게」는 편집 칸을 잠시 접어 공개 화면과 같은 폭으로 보여 준다 — + 좁은 칸에 갇힌 미리보기는 공개 화면이 아니라 좁은 화면용 배치를 보여 주고 있었다. + */ + const [previewMode, setPreviewMode] = useState<"split" | "full" | "hidden">("split"); + const [previewWidth, setPreviewWidth] = useState<"desktop" | "mobile">("desktop"); /* 편집과 미리보기를 한 화면에 나란히 둔다. 예전에는 탭이었고, 고친 것이 어떻게 보이는지 @@ -85,11 +93,12 @@ export function DocumentEditor({ */ return (
-
+