From 86a35fcc8e00dc9dcbc7543dacfa64484f4d236b Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Tue, 15 Sep 2026 20:38:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=8E=B8=EC=A7=91=EA=B8=B0=20=EB=AF=B8?= =?UTF-8?q?=EB=A6=AC=EB=B3=B4=EA=B8=B0=20=ED=8F=AD,=20=EA=B4=80=EA=B3=84?= =?UTF-8?q?=20=EB=8C=80=EC=83=81=20=EA=B1=B0=EB=A5=B4=EA=B8=B0,=20?= =?UTF-8?q?=EC=A2=81=EC=9D=80=20=ED=99=94=EB=A9=B4=20=EC=97=AC=EB=B0=B1,?= =?UTF-8?q?=20=EB=A7=88=EA=B0=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 미리보기가 늘 좁은 칸에 갇혀 있었다. 공개 화면은 1,180px 셸인데 그 칸은 절반도 안 되므로, 작성자가 보던 것은 공개 화면이 아니라 좁은 화면용 배치였다 — 데스크톱에서 어떻게 보이는지는 게시한 뒤에야 알 수 있었다. 나란히·넓게·숨김과 데스크톱·모바일 폭을 고를 수 있게 한다. 관계 대상이 105개다. 평면 셀렉트에서 그것을 이름으로 찾으려면 목록 전체를 눈으로 훑어야 하고, 종류로 묶어도 한 묶음이 마흔이 넘으면 마찬가지다 — 셀렉트는 열어 둔 채 타이핑으로 걸러지지 않는다. 거르는 칸을 위에 둔다. 이미 고른 대상은 걸러도 남긴다: 사라지면 그 줄이 무엇을 가리키는지 읽을 수 없다. 게시 화면이 어느 주소로 나가는지 말하지 않았다. 게시는 공개 주소 하나를 만들거나 갈아 끼우는 일이고, 작성자가 확인하고 싶은 것도 그 주소다. Studio 의 좁은 화면 좌우 여백이 16px 이라 글이 테두리에 붙었다. 공개 화면과 같은 20px 로 맞춘다. hover 는 120ms 로 색만 옮긴다. 자리를 옮기는 전환은 목록에서 줄이 흔들려 보인다. 움직임을 줄이라고 한 사람에게는 기존 `prefers-reduced-motion` 블록이 0 으로 만든다. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_015c8cBFUaVr7KLVUx6ujz7D --- .../studio/components/document-editor.tsx | 63 ++++++++++++++++++- .../components/publication-flow-classes.ts | 1 + .../studio/components/publish-screen.tsx | 10 +++ .../studio/components/relation-editor.tsx | 34 +++++++++- .../tech-log/presentation/styles/globals.css | 22 +++++++ .../styles/publication-flow.module.css | 10 +++ .../presentation/styles/studio-editor.css | 17 +++++ .../tech-log/presentation/styles/studio.css | 12 +++- 8 files changed, 164 insertions(+), 5 deletions(-) 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 (
-
+