Skip to content

Commit a804393

Browse files
committed
minor
1 parent 3b4b86e commit a804393

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/dagshub/data-engine/annotations/LabelStudioPolygonDrawer.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ function getSingleAnnotationResultLayers(
179179
const text = (
180180
<Group listening={false}>
181181
<Rect
182-
x={textPosition.x + textHeight}
183-
y={textPosition.y + textHeight}
184-
width={textWidth + 20}
182+
x={textPosition.x}
183+
y={textPosition.y - 10}
184+
width={textWidth + 10}
185185
height={textHeight + 10}
186186
opacity={0.3}
187187
fill={`rgba(${R},${G},${B}, 1)`}
@@ -192,8 +192,8 @@ function getSingleAnnotationResultLayers(
192192
setTextWidth(e?.textWidth ?? 1);
193193
setTextHeight(e?.textHeight ?? 1);
194194
}}
195-
x={textPosition.x}
196-
y={textPosition.y}
195+
x={textPosition.x - 15}
196+
y={textPosition.y - 25}
197197
padding={20}
198198
height={32}
199199
text={label}

0 commit comments

Comments
 (0)