Skip to content

Commit bfea008

Browse files
committed
Fix inconsistent collaboration caret heights
The caret height was using 1.2em which is relative to the font-size of the current context, causing different heights depending on where the cursor appears in the document. Changes: - Changed height from 1.2em to 1em to match actual text height - Added line-height: inherit to match the line-height of surrounding text - Added vertical-align: baseline for proper alignment - Removed min-height: 16px as it's no longer needed This ensures all collaboration carets have consistent heights that match the line height of the text where they appear.
1 parent 9ffb668 commit bfea008

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/styles/simple-editor.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,10 @@
395395
position: relative;
396396
word-break: normal;
397397
animation: blink 1.5s infinite;
398-
height: 1.2em;
399-
min-height: 16px;
398+
/* Use line-height to match the actual text height where cursor appears */
399+
height: 1em;
400+
line-height: inherit;
401+
vertical-align: baseline;
400402
display: inline-block;
401403
}
402404

0 commit comments

Comments
 (0)