@@ -198,8 +198,8 @@ const CustomAvatarXAxisTick = (props: { x: number, y: number, payload: { value:
198198 const message = {
199199 tool : 'nudge_team_member' ,
200200 data : {
201- teamMemberId : memberInfo . id ,
202- teamMemberName : memberInfo . name ,
201+ id : memberInfo . id ,
202+ name : memberInfo . name ,
203203 }
204204 } ;
205205 // @ts -expect-error - window is not typed correctly
@@ -238,20 +238,21 @@ const CustomAvatarXAxisTick = (props: { x: number, y: number, payload: { value:
238238 { isHovered && (
239239 < g >
240240 < rect
241- x = { baseAvatarSize / 2 - 22 } // Center the tooltip background
242- y = { - 18 } // Position above the avatar
241+ x = { baseAvatarSize + 4 } // Position 4px to the right of the avatar
242+ y = { ( baseAvatarSize - 16 ) / 2 } // Vertically center with the avatar
243243 width = { 44 } // Width of the tooltip background
244244 height = { 16 } // Height of the tooltip background
245245 rx = { 3 } // Rounded corners for the background
246246 ry = { 3 }
247- fill = "rgba(0,0,0,0.75 )"
247+ fill = "rgb(50, 50, 50 )" // Solid dark background
248248 />
249249 < text
250- x = { baseAvatarSize / 2 } // Center the text
251- y = { - 7 } // Position above the avatar, vertically centered in the rect
250+ x = { baseAvatarSize + 4 + ( 44 / 2 ) } // Horizontally center text in the rect
251+ y = { baseAvatarSize / 2 } // Vertically center text with the avatar
252252 fill = "#FFFFFF"
253253 fontSize = "10px"
254254 textAnchor = "middle"
255+ dominantBaseline = "middle" // Ensure proper vertical alignment of text
255256 style = { { pointerEvents : 'none' } } // Ensure text doesn't interfere with mouse events on avatar
256257 >
257258 Nudge
0 commit comments