Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 5b96692

Browse files
authored
fix(gui): wrong assignment to cells in grid of annotation tag for manual annotations (#961)
1 parent 547d6c4 commit 5b96692

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

api-editor/gui/src/features/annotations/AnnotationView.tsx

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button, ButtonGroup, Icon, IconButton, SimpleGrid, Text as ChakraText, Tooltip } from '@chakra-ui/react';
1+
import { Box, Button, ButtonGroup, Icon, IconButton, SimpleGrid, Text as ChakraText, Tooltip } from '@chakra-ui/react';
22
import React from 'react';
33
import { FaCheck, FaFlag, FaQuestion, FaRobot, FaTimes, FaTrash, FaUser, FaWrench } from 'react-icons/fa';
44
import { useAppDispatch, useAppSelector } from '../../app/hooks';
@@ -464,21 +464,23 @@ const AnnotationTag: React.FC<AnnotationTagProps> = function ({
464464
</>
465465
)}
466466
</ButtonGroup>
467-
{isReportable && (
468-
<Tooltip label="Report a wrong autogenerated annotation.">
469-
<IconButton
470-
icon={<FaFlag />}
471-
aria-label="Report Wrong Annotation"
472-
colorScheme="orange"
473-
size="sm"
474-
variant="outline"
475-
disabled={reviewResult === ReviewResult.Correct || !isValidUsername}
476-
onClick={() => {
477-
window.open(wrongAnnotationURL(type, annotation), '_blank');
478-
}}
479-
/>
480-
</Tooltip>
481-
)}
467+
<Box>
468+
{isReportable && (
469+
<Tooltip label="Report a wrong autogenerated annotation.">
470+
<IconButton
471+
icon={<FaFlag />}
472+
aria-label="Report Wrong Annotation"
473+
colorScheme="orange"
474+
size="sm"
475+
variant="outline"
476+
disabled={reviewResult === ReviewResult.Correct || !isValidUsername}
477+
onClick={() => {
478+
window.open(wrongAnnotationURL(type, annotation), '_blank');
479+
}}
480+
/>
481+
</Tooltip>
482+
)}
483+
</Box>
482484
</>
483485
);
484486
};

0 commit comments

Comments
 (0)