Frontmatter
| id | 8846 |
| title | Fix Monaco Editor Background Glitch |
| state | Closed |
| labels | bugdesign |
| assignees | tobiu |
| createdAt | Jan 21, 2026, 12:13 PM |
| updatedAt | Jan 21, 2026, 12:20 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8846 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8727 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 21, 2026, 12:20 PM |
Fix Monaco Editor Background Glitch
tobiu added parent issue #8727 on Jan 21, 2026, 12:14 PM
tobiu assigned to @tobiu on Jan 21, 2026, 12:14 PM

tobiu
Jan 21, 2026, 12:20 PM
Input from Gemini 3 Pro:
✦ I have resolved the 1px background glitch.
Changes:
- Refactored SCSS: Updated
resources/scss/src/component/wrapper/MonacoEditor.scssto use the CSS variablevar(--monaco-editor-background-color).- Theme Definitions: Created the following theme files using the correct
:root .neo-theme-...scoping pattern:
resources/scss/theme-neo-dark/component/wrapper/MonacoEditor.scss: Sets variable to#1e1e1e.resources/scss/theme-neo-light/component/wrapper/MonacoEditor.scss: Sets variable to#fffffe.This ensures the wrapper background visually matches the editor canvas, masking the sub-pixel rendering artifact.
tobiu closed this issue on Jan 21, 2026, 12:20 PM
Fix a 1px rendering artifact in the Monaco Editor wrapper caused by rounding errors.
Problem: The Monaco Editor's internal background color (e.g.,
#1e1e1ein dark mode) can be 1px smaller than the wrapper container, revealing the wrapper's background color. Currently, the wrapper hardcodesbackground-color: #fffffe.Solution:
resources/scss/src/component/wrapper/MonacoEditor.scssto use a CSS variable forbackground-color.resources/scss/theme-neo-dark/component/wrapper/MonacoEditor.scss: Set var to#1e1e1e.resources/scss/theme-neo-light/component/wrapper/MonacoEditor.scss: Set var to#fffffe.Context: This ensures the wrapper background matches the editor content, masking the 1px gap.