Fix line height is not reflecting in editor #61993
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #61890
What?
This PR fixes the issue where the line height in the Latest Comments block is not reflected in the editor side until the page is refreshed.
Why?
This PR is necessary to ensure that changes to the line height in the Latest Comments block are immediately reflected in the editor. This addresses the problem of the editor not updating the line height dynamically, which can cause confusion and disrupt the editing workflow.
How?
The PR addresses the issue by adding CSS to ensure that the Latest Comments block in the editor adopts the parent's line height immediately upon change. Specifically, the implementation updates the editor's rendering logic to apply the line height styles directly to the block's DOM elements without requiring a page refresh. This ensures that the line height changes are dynamically reflected in the editor as soon as they are made
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
https://www.loom.com/share/7af36ed135b54425a74aa0fbe94f2638?sid=1a0d6fd2-6ce9-4069-8279-cb79fc94a68a