Skip to content

Any widget can present a page's margin items, with Leaf's rail as one such widget outside core #6314

Open

Description

@max-sixty

Leaf's margin, the comment markers, pins and thread cards beside a page's text, is core code (browser/runtime/annotation-overlay/). Long term it could be a widget outside core that subscribes to the page's margin items and draws them. Any widget could then present those items in its own design, as popovers, a horizontal strip or anything else, and Leaf's rail would move to that form as one presentation among them.

What exists. #6161 (open) completes the public route a page widget uses to present annotations: data-annotations="page", placePageThreads, consumeAnnotations, threadSummary, anchorTo and watchAnnotationLayer. It ships lf-x-margin in the feature gallery as a sample that draws marks and cards through that route alone.

What stands between that and moving Leaf's margin.

This direction also makes #6121's placeMarginRail unnecessary, since a widget that presents margin items places them itself.

First step when this is taken up. Run the margin tests (tests/browser/margin/, tests/journeys/margin/) against lf-x-margin. Sort each by whether any presentation needs the behavior or only Leaf's rail design does, and split the failures into gaps in the public interface and work the widget hasn't done.

Waits until #6161 lands and the maintainer takes it up.

This was written by Claude Code on behalf of max-sixty

Activity

  1. added
    backlog
    etc
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogetc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions