Skip to content

fix: Monarch editor: autocomplete cropped#3786

Open
cursor[bot] wants to merge 1 commit intomainfrom
cursor/agent-4a142eef
Open

fix: Monarch editor: autocomplete cropped#3786
cursor[bot] wants to merge 1 commit intomainfrom
cursor/agent-4a142eef

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor bot commented Mar 30, 2026

Summary

Fixes #1804 — The autocomplete/suggestions dropdown in Monaco editor input fields was being cropped/clipped when used inside the component configuration sidebar.

Root Cause

The component sidebar (componentSidebar/index.tsx) uses overflow-hidden on its container, which clips any child elements that extend beyond its boundaries. Monaco's suggest widget (autocomplete dropdown) is rendered inside the editor's DOM tree by default, so it gets cut off by the sidebar's overflow clipping.

Fix

Added fixedOverflowWidgets: true to the Monaco editor options in all three configuration field renderers:

  • TextFieldRenderer (plaintext editor)
  • ObjectFieldRenderer (JSON editor)
  • XMLFieldRenderer (XML editor)

This is Monaco's built-in solution for this exact problem — it renders overlay widgets (like the autocomplete dropdown, parameter hints, etc.) in a fixed-position container that escapes overflow: hidden ancestors.

Changes

File Change
web_src/src/ui/configurationFieldRenderer/TextFieldRenderer.tsx Added fixedOverflowWidgets: true to editor options
web_src/src/ui/configurationFieldRenderer/ObjectFieldRenderer.tsx Added fixedOverflowWidgets: true to editor options
web_src/src/ui/configurationFieldRenderer/XMLFieldRenderer.tsx Added fixedOverflowWidgets: true to editor options

Verification

  • TypeScript compiles without errors (tsc --noEmit passes)
  • Vite production build succeeds (npm run build passes)
  • Prettier formatting verified (make format.js passes)
Open in Web Open in Cursor 

…field renderers

Add fixedOverflowWidgets: true to editor options in TextFieldRenderer,
ObjectFieldRenderer, and XMLFieldRenderer. This tells Monaco to render
overlay widgets (autocomplete/suggest dropdown) in a fixed-position
container that escapes overflow:hidden ancestors, preventing the
suggestion dropdown from being clipped by the component sidebar.
@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monarch editor: autocomplete cropped

1 participant