You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A maintainer will triage this. If it is a bug, the fastest way to move it
along is exact steps to reproduce starting from the seeded demo workspace,
since that is what we run locally.
If you fancy fixing it yourself, CONTRIBUTING.md
walks through the setup. You need Bun and Docker, and nothing else.
I can take this issue. I plan to reproduce the overflow with the supplied steps, trace the formatting popover placement in the issue drawer, and add a focused regression test. Following the project workflow, I will wait for assignment before starting.
Root cause is in SelectionBubble (apps/web/src/features/docs/editor/rich-text-editor.tsx): the popover is anchored at the selection midpoint and shifted with -translate-x-1/2, and top is a fixed 44px above the selection top. Neither axis is clamped to the editor's own box, and the surface scrolls inside an overflow-y-auto element (which computes overflow-x: auto too), so anything outside the box is clipped.
That matches the repro exactly. Selecting the first word of a line puts the midpoint a few pixels from the left edge, so half the popover lands outside the narrow drawer. Selecting anything on the first line puts the popover above the box entirely.
Plan: measure the popover after mount, clamp left into the editor's box, and flip top below the selection when there is no room above. The placement rule lands in an exported pure helper so the reported geometry (first word, 397px drawer) is a unit test, plus a component test that stubs the container rect and caret coords. No new dependency and no layout library.
PR up: #581. It measures the popover after mount, clamps it into the editor box on both axes, and flips it below the selection when there is no room above. The placement rule is a pure exported helper, so the reported geometry is a unit test, and two component tests pin the rendered offsets with the container and popover rects stubbed to the 397px drawer. Both directions proven by restoring the old arithmetic and then only the old rendering.
Heads up on one thing I left out on purpose: the slash and mention menus use the same unbounded container-relative positioning, and TableControls shares caretPosition, so they can clip at the same edges. Separate from the reported popover, so separate PR if you want it.
Activity
github-actions commentedon Oct 2, 2026
Thanks for opening your first issue on Orbit.
A maintainer will triage this. If it is a bug, the fastest way to move it
along is exact steps to reproduce starting from the seeded demo workspace,
since that is what we run locally.
If you fancy fixing it yourself, CONTRIBUTING.md
walks through the setup. You need Bun and Docker, and nothing else.
dannyward630 commentedon Oct 19, 2026
I can take this issue. I plan to reproduce the overflow with the supplied steps, trace the formatting popover placement in the issue drawer, and add a focused regression test. Following the project workflow, I will wait for assignment before starting.
ayam04 commentedon Nov 16, 2026
Taking this one.
Root cause is in
SelectionBubble(apps/web/src/features/docs/editor/rich-text-editor.tsx): the popover is anchored at the selection midpoint and shifted with-translate-x-1/2, andtopis a fixed 44px above the selection top. Neither axis is clamped to the editor's own box, and the surface scrolls inside anoverflow-y-autoelement (which computesoverflow-x: autotoo), so anything outside the box is clipped.That matches the repro exactly. Selecting the first word of a line puts the midpoint a few pixels from the left edge, so half the popover lands outside the narrow drawer. Selecting anything on the first line puts the popover above the box entirely.
Plan: measure the popover after mount, clamp
leftinto the editor's box, and fliptopbelow the selection when there is no room above. The placement rule lands in an exported pure helper so the reported geometry (first word, 397px drawer) is a unit test, plus a component test that stubs the container rect and caret coords. No new dependency and no layout library.ayam04 commentedon Nov 16, 2026
PR up: #581. It measures the popover after mount, clamps it into the editor box on both axes, and flips it below the selection when there is no room above. The placement rule is a pure exported helper, so the reported geometry is a unit test, and two component tests pin the rendered offsets with the container and popover rects stubbed to the 397px drawer. Both directions proven by restoring the old arithmetic and then only the old rendering.
Heads up on one thing I left out on purpose: the slash and mention menus use the same unbounded container-relative positioning, and
TableControlssharescaretPosition, so they can clip at the same edges. Separate from the reported popover, so separate PR if you want it.fix(web): repair GitHub teardown, reporting and editor controls (Nove…