Skip to content

Commit 5c5547a

Browse files
committed
refactor: extract chrome layout owner
Move comment-panel visibility, document-room geometry, layout observation, and panel resize coordination out of the browser entrypoint. Keep boot order and behavior unchanged behind a dedicated factory.
1 parent 47f1c35 commit 5c5547a

3 files changed

Lines changed: 419 additions & 345 deletions

File tree

‎plugins/leaf/skills/leaf/CLAUDE.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ guards, deferred measurement, and control sizing;
7777
and the gutter its bar takes;
7878
`runtime/chrome-style.js` owns the comment layer's private stylesheet, built from
7979
the declaration-derived names and layout queries the runtime supplies it;
80+
`runtime/chrome-layout.js` owns comment-panel visibility, chrome geometry, and the
81+
document room left after the panel and trays;
8082
`runtime/presentation.js` owns runtime paint and the words it projects;
8183
`runtime/reach.js` owns keyboard access to overflow and the containing block a
8284
scroller owes what it scrolls;

0 commit comments

Comments
 (0)