cyphercodes opened a new pull request, #38928:
URL: https://github.com/apache/superset/pull/38928
### Problem
When editing Markdown on a dashboard, the cursor becomes misaligned with the
text. This makes it difficult to edit content as the cursor appears in the
wrong position relative to the actual text.
### Solution
Added explicit font-family styling to Ace editor's content elements
(.ace_content and .ace_text-layer) to ensure consistent font rendering. The
cursor misalignment was caused by font-family mismatches between the editor's
internal measurements and the actual rendered text.
### Changes
- Added font-family: ${editorFontFamily} !important to .ace_editor
.ace_content
- Added font-family: ${editorFontFamily} !important to .ace_editor
.ace_text-layer
### Testing
This fix ensures that the font-family used for text measurement matches the
font-family used for rendering, which resolves the cursor position calculation
issues in Ace editor.
Fixes #38850
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]