feat(M02): 일위대가 · 면적산출 상세 오른쪽 패널 따로 스크롤 — follow:false · 고정 높이 · 원문 강조는 패널 몸만(85-5)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W4uKaV4ZBhsJN4GHG7yRj4
This commit is contained in:
2026-10-08 12:12:45 +09:00
co-authored by Claude Opus 5.5
parent eaeff398dc
commit b08796ab4e
9 changed files with 110 additions and 10 deletions
@@ -137,9 +137,14 @@ export function createSourceView(opts: SourceViewOptions = {}): SourceView {
...f.blocks.map(blockNode),
]),
);
requestAnimationFrame(() =>
body.querySelector(".m01lab-src__hit")?.scrollIntoView({ block: "center" }),
);
// 강조 항을 패널 몸 가운데로 — 몸만 굴림(85-5 · scrollIntoView 는 메인 창까지 굴림)
requestAnimationFrame(() => {
const hit = body.querySelector<HTMLElement>(".m01lab-src__hit");
const box = hit?.closest<HTMLElement>(".ui-side-panels__body");
if (!hit || !box) return hit?.scrollIntoView({ block: "nearest" });
const off = hit.getBoundingClientRect().top - box.getBoundingClientRect().top;
box.scrollTop += off - (box.clientHeight - hit.offsetHeight) / 2;
});
});
};