YAML editor height grows unexpectedly when entering spaces
Summary
The YAML editor in the Security Policies interface has a UX bug where the editor's height increases every time a space character is entered, causing an unpleasant editing experience.
Steps to Reproduce
- Navigate to Security & Compliance > Policies in a project
- Create or edit a policy using the YAML editor
- Type content and press the spacebar multiple times
- Observe the editor height growing with each space entered
- It happens in both standard and advanced editor layouts
Recording
CleanShot_2025-11-11_at_15.45.55
Expected Behavior
The YAML editor should maintain a consistent height regardless of the characters being typed. Height should only change based on:
- The number of lines of content
- Explicit user resize actions (if supported)
Actual Behavior
The editor grows in height each time a space is entered, making the editing experience jarring and potentially causing layout issues.
Impact
- Poor user experience when editing security policies
- Potential layout/scrolling issues on the page
- Affects all YAML-based policy editing (scan result policies, vulnerability management policies, etc.)