fix: 편집과 미리보기를 한 화면에서 보고, 저장·게시를 아래에 고정한다
편집기는 탭이었다. 고친 것이 어떻게 보이는지 확인하려면 편집하던 자리를 화면에서 치워야 했고, 돌아오면 스크롤 위치도 잃었다. 두 패널을 나란히 두면 그 왕복이 통째로 없어진다. 작업 상태와 저장·게시는 오른쪽 세로 rail 이었다. 그 자리는 편집기와 미리보기가 함께 쓸 가로 폭을 가져갔고, 편집 칸이 길어질수록 rail 은 위에 붙은 채 본문만 멀어졌다. 화면 아래에 고정하면 폭을 돌려주면서 스크롤 위치와 무관하게 손이 닿는다. 탭을 없앴으므로 각 패널이 스스로 이름을 가져야 한다. `aria-labelledby` 로 제목을 가리켜 landmark 로 만든다 — 탭 목록이 하던 "여기는 편집, 저기는 미리보기" 안내를 대신한다. `aside` 와 「작업 상태」라는 이름은 그대로 둔다. 자리가 바뀐 것이지 이 묶음이 무엇인지가 바뀐 것은 아니다. 미리보기가 늘 떠 있게 되면서 Picker 테스트의 단언도 함께 고쳤다. 「Picker 가 좁아졌는가」를 화면 전체에 묻고 있었는데, 이제는 미리보기 쪽의 같은 Asset 까지 세게 된다. 그 김에 `.studio-asset-panel` 의 `aria-labelledby` 가 role 없는 div 에서 아무 이름도 만들지 못하던 것도 `role="group"` 으로 실효화했다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0189NzCryfeqDzS81EWidnBx
This commit is contained in:
co-authored by
Claude Opus 5
parent
b3119952d5
commit
60c8c82097
@@ -1,15 +1,26 @@
|
||||
.studio-app .studio-editor-page,
|
||||
.studio-app .studio-editor-layout,
|
||||
.studio-app .studio-editor-split,
|
||||
.studio-app .studio-editor-workspace,
|
||||
.studio-app .studio-editor-workspace > [role="tabpanel"] { min-width: 0; }
|
||||
.studio-app .studio-editor-preview { min-width: 0; }
|
||||
|
||||
.studio-app .studio-editor-loading { min-height: 240px; padding-block: 56px; color: var(--muted); }
|
||||
.studio-app .studio-editor-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-strong); }
|
||||
.studio-app .studio-editor-tabs button { position: relative; min-width: 112px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 650; }
|
||||
.studio-app .studio-editor-tabs button[aria-selected="true"] { color: var(--ink); }
|
||||
.studio-app .studio-editor-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--signal); content: ""; }
|
||||
/*
|
||||
편집과 미리보기를 한 화면에 나란히 둔다. 탭이었을 때는 한 번에 하나만 보였고, 고친 결과를
|
||||
보려면 편집하던 자리를 화면에서 치워야 했다.
|
||||
*/
|
||||
.studio-app .studio-editor-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 40px; }
|
||||
/* 반쪽 폭에는 62px 짜리 제목이 앉을 자리가 없다. */
|
||||
.studio-app .studio-editor-split .studio-editor-heading h1 { font-size: clamp(28px, 3vw, 40px); }
|
||||
|
||||
.studio-app .studio-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); gap: 64px; align-items: start; padding-top: 40px; }
|
||||
/*
|
||||
미리보기는 편집 칸과 길이가 다르다. 붙잡아 두지 않으면 본문을 스크롤하는 동안 화면 밖으로
|
||||
나가 버리므로 자기 높이 안에서 따로 스크롤한다. 아래로 비워 두는 만큼이 고정된 상태 바가
|
||||
덮는 자리다.
|
||||
*/
|
||||
.studio-app .studio-editor-preview { position: sticky; top: 28px; display: flex; flex-direction: column; max-height: calc(100vh - 190px); padding-left: 40px; border-left: 1px solid var(--line); }
|
||||
.studio-app .studio-editor-preview__heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
|
||||
.studio-app .studio-editor-preview__heading .studio-eyebrow { margin-bottom: 8px; }
|
||||
.studio-app .studio-editor-preview__body { flex: 1; min-height: 0; padding-top: 20px; overflow-y: auto; }
|
||||
.studio-app .studio-editor-heading { padding-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
|
||||
.studio-app .studio-editor-heading h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.045em; }
|
||||
.studio-app .studio-editor-heading > p:last-child { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
|
||||
@@ -17,7 +28,7 @@
|
||||
.studio-app .studio-editor-section-heading { margin-bottom: 24px; }
|
||||
.studio-app .studio-editor-section-heading .studio-eyebrow { margin-bottom: 8px; }
|
||||
.studio-app .studio-editor-section-heading h2,
|
||||
.studio-app .studio-document-status-rail h2,
|
||||
.studio-app .studio-editor-preview__heading h2,
|
||||
.studio-app .studio-preview-error h2 { margin: 0; font-size: 25px; letter-spacing: -0.03em; }
|
||||
|
||||
.studio-app .studio-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
|
||||
@@ -71,27 +82,38 @@
|
||||
.studio-app .studio-item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.studio-app .studio-item-actions button,
|
||||
.studio-app .studio-add-item,
|
||||
.studio-app .studio-document-status-rail button { min-height: 44px; padding-inline: 13px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); font-weight: 650; }
|
||||
.studio-app .studio-document-status-bar button { min-height: 44px; padding-inline: 13px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); font-weight: 650; }
|
||||
.studio-app .studio-item-actions button:disabled,
|
||||
.studio-app .studio-add-item:disabled { opacity: 0.45; }
|
||||
.studio-app .studio-add-item { margin-top: 12px; }
|
||||
.studio-app .studio-resolution-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
|
||||
.studio-app .studio-resolution-fields legend { grid-column: 1 / -1; }
|
||||
|
||||
.studio-app .studio-document-status-rail { position: sticky; top: 28px; min-width: 0; padding: 24px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
|
||||
.studio-app .studio-document-status-rail .studio-eyebrow { margin-bottom: 8px; }
|
||||
.studio-app .studio-editor-status { margin: 20px 0; font-weight: 700; }
|
||||
/*
|
||||
작업 상태와 저장·게시를 화면 아래에 붙여 둔다. 문서가 길어져도 스크롤 위치와 무관하게 손이
|
||||
닿는다. 배경을 불투명하게 두는 것은 장식이 아니라 필요다 — 밑으로 지나가는 본문이 비치면
|
||||
상태 글자를 읽을 수 없다.
|
||||
*/
|
||||
.studio-app .studio-document-status-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-width: 0; margin-top: 48px; padding: 16px 0; border-top: 1px solid var(--line-strong); background: var(--paper); }
|
||||
.studio-app .studio-editor-status { margin: 0; font-weight: 700; }
|
||||
.studio-app .studio-editor-status--dirty,
|
||||
.studio-app .studio-editor-status--conflict,
|
||||
.studio-app .studio-editor-conflict { color: #8f2f27; }
|
||||
.studio-app .studio-editor-status--clean { color: #166748; }
|
||||
.studio-app .studio-document-status-rail dl { display: grid; gap: 12px; margin: 0 0 20px; }
|
||||
.studio-app .studio-document-status-rail dl div { display: flex; justify-content: space-between; gap: 16px; }
|
||||
.studio-app .studio-document-status-rail dt { color: var(--muted); font-size: 12px; }
|
||||
.studio-app .studio-document-status-rail dd { margin: 0; font-size: 13px; }
|
||||
.studio-app .studio-document-status-rail button { width: 100%; border-color: var(--signal); background: var(--signal); color: #fff; }
|
||||
.studio-app .studio-document-status-rail button:disabled { border-color: var(--line-strong); background: var(--paper); color: var(--muted); }
|
||||
.studio-app .studio-document-status-rail > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
|
||||
.studio-app .studio-document-status-bar dl { display: flex; gap: 20px; margin: 0; }
|
||||
.studio-app .studio-document-status-bar dl div { display: flex; align-items: baseline; gap: 8px; }
|
||||
.studio-app .studio-document-status-bar dt { color: var(--muted); font-size: 12px; }
|
||||
.studio-app .studio-document-status-bar dd { margin: 0; font-size: 13px; }
|
||||
.studio-app .studio-document-status-bar__note { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
||||
/* 색은 위 묶음이 정한다 — 여기서 다시 칠하면 실패가 안내문처럼 보인다. */
|
||||
.studio-app .studio-document-status-bar .studio-editor-conflict { flex: 1 1 240px; margin: 0; font-size: 12px; line-height: 1.6; }
|
||||
.studio-app .studio-document-status-bar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
|
||||
/* `.studio-primary-button` 은 세로로 쌓이는 자리에 맞춘 바깥 여백을 갖고 있다. 한 줄에
|
||||
나란히 두면 그 여백이 줄 높이를 늘리고, 옆 버튼만 늘어나 짝이 어긋난다. */
|
||||
.studio-app .studio-document-status-bar__actions .studio-primary-button { margin: 0; }
|
||||
.studio-app .studio-document-status-bar button { min-width: 104px; border-color: var(--signal); background: var(--signal); color: #fff; }
|
||||
.studio-app .studio-document-status-bar button:disabled { border-color: var(--line-strong); background: var(--paper); color: var(--muted); }
|
||||
.studio-app .studio-document-status-bar .studio-editor-unplaced-issues { flex: 1 1 100%; }
|
||||
|
||||
.studio-app .studio-asset-panel { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
|
||||
.studio-app .studio-asset-panel .studio-eyebrow { margin-bottom: 8px; }
|
||||
@@ -107,7 +129,7 @@
|
||||
matches this form's submit button, and both selectors carry the same
|
||||
specificity, so only source order tells them apart. */
|
||||
/* `minmax(0, 1fr)` and the row's `min-width: 0` are both load bearing, for the
|
||||
reason `.studio-editor-layout` already needs the same pair: a grid track and
|
||||
reason `.studio-editor-split` already needs the same pair: a grid track and
|
||||
a flex container both default to an automatic minimum of their min-content
|
||||
size, so at 360px the search row sized itself to 366px inside a 328px column
|
||||
and pushed the submit button off-screen (document scrollWidth 382). */
|
||||
@@ -128,15 +150,20 @@
|
||||
.studio-app .studio-preview-error ul { margin: 20px 0 0; padding-left: 20px; color: #8f2f27; line-height: 1.7; overflow-wrap: anywhere; }
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.studio-app .studio-editor-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
|
||||
.studio-app .studio-document-status-rail { position: static; }
|
||||
.studio-app .studio-editor-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
|
||||
.studio-app .studio-editor-split .studio-editor-heading h1 { font-size: clamp(38px, 5vw, 62px); }
|
||||
.studio-app .studio-editor-preview { position: static; max-height: none; padding-top: 8px; padding-left: 0; border-top: 1px solid var(--line-strong); border-left: 0; }
|
||||
.studio-app .studio-editor-preview__body { overflow-y: visible; }
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.studio-app .studio-editor-heading { padding-bottom: 28px; }
|
||||
.studio-app .studio-editor-tabs { gap: 18px; }
|
||||
.studio-app .studio-editor-tabs button { flex: 1; min-width: 0; }
|
||||
.studio-app .studio-editor-layout { padding-top: 28px; }
|
||||
.studio-app .studio-editor-split { padding-top: 28px; }
|
||||
/* 안내문은 세 줄로 접혀 뷰포트의 20%를 고정으로 가져간다. 실패 문구는 남기고 안내만 접는다 —
|
||||
Ctrl+S 는 여기서 누를 수 있는 것도 아니다. */
|
||||
.studio-app .studio-document-status-bar__note { display: none; }
|
||||
.studio-app .studio-document-status-bar__actions { flex: 1 1 100%; margin-left: 0; }
|
||||
.studio-app .studio-document-status-bar__actions button { flex: 1; min-width: 0; }
|
||||
.studio-app .studio-field-grid,
|
||||
.studio-app .studio-resolution-fields { grid-template-columns: minmax(0, 1fr); }
|
||||
.studio-app .studio-field--wide,
|
||||
@@ -181,6 +208,6 @@
|
||||
저장과 게시는 되돌릴 수 있는 정도가 다르다 — 하나는 초안을 남기고, 하나는 공개한다. 둘이
|
||||
맞붙어 있으면 누르려던 것을 지나쳐 누르기 쉬우므로 사이를 벌린다.
|
||||
*/
|
||||
.studio-app .studio-document-status-rail button + button { margin-top: 10px; }
|
||||
.studio-app .studio-document-status-bar__actions { gap: 12px; }
|
||||
/* 게시만 강조한다. 저장은 되돌릴 수 있으므로 같은 무게로 부를 이유가 없다. */
|
||||
.studio-app .studio-document-status-rail button:not(.studio-primary-button) { border-color: var(--line-strong); background: var(--paper); color: var(--ink); }
|
||||
.studio-app .studio-document-status-bar button:not(.studio-primary-button) { border-color: var(--line-strong); background: var(--paper); color: var(--ink); }
|
||||
|
||||
Reference in New Issue
Block a user