feat: UX 리뷰의 남은 네 항목을 반영한다

H2. 편집기.
7,540px 폼에 섹션으로 갈 수단이 목차도 접기도 앵커도 없었다. 화면에 실제로 있는
`section[aria-labelledby]` 를 읽어 목차를 만든다 — 목록을 손으로 적지 않으므로
섹션이 바뀌어도 이 파일은 그대로다.

미리보기가 sticky 로 문서 맨 위에 고정돼, 폼 중반에서 지금 쓰는 문단이 미리보기
어디인지 볼 방법이 없었다. 커서가 지난 마지막 `##` 을 찾아 미리보기의 같은 제목으로
옮긴다. 스크롤 비율을 맞추는 방식은 두 쪽 길이가 다르면 늘 어긋난다. 손으로 넘기는
중에는 따라가지 않는다.

반복 그룹은 접을 수 있고 순서는 끌어서 바꾼다. 「위로/아래로」는 남긴다 — 끌기는
키보드로 할 수 없고, 그것만 두면 키보드로 쓰는 사람에게서 순서 바꾸기를 빼앗는다.
대신 작게 적는다.

H3. 주제와 프로젝트를 탭으로 나눈다.
한 화면이 성격이 다른 두 엔티티를 같은 문법으로 다뤘다. 「추가」 버튼 둘이 같은
이름·같은 모양으로 한 줄에 있었고, 주제 행은 프로젝트에 맞춘 그리드라 절반이
빈칸이었다. 버튼 이름을 「주제 추가」·「프로젝트 추가」로 가르고, 프로젝트 행에서
같은 주소를 두 번 가리키던 「내용 편집」 하나를 없애고, 주제 행에 편집 버튼을 둔다.

M10. 프로필에 연락·구독 수단. 계약은 처음부터 `contacts` 를 주고 있었고 화면이
읽지 않았다 — 읽고 나서 할 수 있는 일이 하나도 없었다. 프로필이 게시 전이면 빈
목록이고 그때는 구역을 그리지 않는다.

M11. 공개 화면 HTML 에 Studio 청크 셋이 modulepreload 로 붙어 있었다. 읽기만 하는
사람이 편집기 번들을 내려받았다. 빌드에서 그 셋만 뺀다 — 공개 라우트의 미리 받기는
그대로 둔다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PTnWufiY9ATv57egkKKVAV
This commit is contained in:
DongHyeonka
2026-09-09 19:27:25 +09:00
co-authored by Claude Opus 5
parent 41b6457166
commit 02fff0cd03
12 changed files with 438 additions and 28 deletions
@@ -248,3 +248,36 @@
.studio-app .studio-markdown-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 6px; }
.studio-app .studio-markdown-toolbar button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
.studio-app .studio-markdown-toolbar button:hover { border-color: var(--signal); color: var(--signal); }
/*
편집 폼의 구역 목차.
7,540px 폼에 섹션 이동 수단이 없었다 — 목차도 접기도 앵커도 없어서 아래쪽을 고치려면 매번
스크롤로 찾아 내려가야 했다. 폼 위에 붙여 두고 따라다니게 한다.
*/
.studio-app .studio-editor-toc { position: sticky; top: 0; z-index: 1; margin: 0 0 8px; padding: 10px 0; background: var(--paper, #fff); border-bottom: 1px solid var(--line); }
.studio-app .studio-editor-toc ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.studio-app .studio-editor-toc a { color: var(--muted); font-size: 13px; font-weight: 560; }
.studio-app .studio-editor-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* 지금 보고 있는 구역. 배경 대신 글자만 진하게 — Studio 의 다른 곳과 같은 언어다. */
.studio-app .studio-editor-toc a[aria-current="true"] { color: var(--ink); font-weight: 700; }
/* 미리보기 본문이 스스로 스크롤한다. 편집 중인 절로 옮기려면 이 요소가 스크롤 컨테이너여야 한다. */
.studio-app .studio-editor-preview__body { flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
/*
반복 그룹.
Question 문서 하나에 textarea 21개와 버튼 51개가 있었고, 그중 34개가 「위로/아래로」였다.
폼의 대부분이 순서를 바꾸는 버튼이었다. 끌기 손잡이를 두고 그 셋은 작게 적는다.
*/
.studio-app .studio-ordered-list legend { display: flex; align-items: baseline; gap: 10px; }
.studio-app .studio-ordered-list__toggle { min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 560; }
.studio-app .studio-ordered-list__toggle:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.studio-app .studio-ordered-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; column-gap: 8px; }
.studio-app .studio-ordered-item__handle { cursor: grab; color: var(--line-strong); font-size: 15px; line-height: 2; user-select: none; }
.studio-app .studio-ordered-item__handle:active { cursor: grabbing; }
.studio-app .studio-ordered-item.is-dragging { opacity: 0.45; }
.studio-app .studio-ordered-item .studio-item-actions { grid-column: 2; }
/* 순서 바꾸기는 이 행의 목적이 아니다 — 글자 크기로 그렇게 말한다. */
.studio-app .studio-ordered-item .studio-item-actions button { font-size: 12px; font-weight: 500; }