Skip to content

Commit f68625d

Browse files
committed
fix: cursor caret label was off by 1px
1 parent d65d750 commit f68625d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/core/src/editor/editor.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ Tippy popups that are appended to document.body directly
9191

9292
/* Render the username above the caret */
9393
.collaboration-cursor__label {
94-
border-radius: 3px 3px 3px 0;
94+
border-radius: 3px;
9595
font-size: 12px;
9696
font-style: normal;
9797
font-weight: 600;
9898
line-height: normal;
99-
left: -1px;
99+
left: 0;
100+
transform: translate(-2px, -2px);
100101
overflow: hidden;
101102
position: absolute;
102103
white-space: nowrap;
@@ -106,9 +107,7 @@ Tippy popups that are appended to document.body directly
106107
max-width: 4px;
107108
padding: 0;
108109
top: 0;
109-
110110
transition: all 0.2s;
111-
112111
}
113112

114113
.collaboration-cursor__caret[data-active] > .collaboration-cursor__label {

0 commit comments

Comments
 (0)