diff --git a/web/src/components/card/ClassificationCard.tsx b/web/src/components/card/ClassificationCard.tsx index 939255158..6e5b51f7f 100644 --- a/web/src/components/card/ClassificationCard.tsx +++ b/web/src/components/card/ClassificationCard.tsx @@ -34,6 +34,7 @@ import { } from "../mobile/MobilePage"; type ClassificationCardProps = { + className?: string; imgClassName?: string; data: ClassificationItemData; threshold?: ClassificationThreshold; @@ -49,6 +50,7 @@ export const ClassificationCard = forwardRef< ClassificationCardProps >(function ClassificationCard( { + className, imgClassName, data, threshold, @@ -98,8 +100,8 @@ export const ClassificationCard = forwardRef<
e.preventDefault()} @@ -357,40 +359,31 @@ export function GroupedClassificationCard({
-
- {group.map((data: ClassificationItemData) => ( -
( +
+ { + if (meta || selectedItems.length > 0) { + onClick(data); + } + }} > - { - if (meta || selectedItems.length > 0) { - onClick(data); - } - }} - > - {children?.(data)} - -
- ))} -
+ {children?.(data)} + +
+ ))}
diff --git a/web/src/pages/FaceLibrary.tsx b/web/src/pages/FaceLibrary.tsx index 6ab9f3999..aef7cdad2 100644 --- a/web/src/pages/FaceLibrary.tsx +++ b/web/src/pages/FaceLibrary.tsx @@ -695,16 +695,13 @@ function TrainingGrid({
{Object.entries(faceGroups).map(([key, group]) => { const event = events?.find((ev) => ev.id == key); return ( -
+
{sortedFaces.map((image: string) => ( - onClickFaces([data.filename], meta)} - > - - - { - e.stopPropagation(); - onDelete(pageToggle, [image]); - }} - /> - - {t("button.deleteFaceAttempts")} - - +
+ onClickFaces([data.filename], meta)} + > + + + { + e.stopPropagation(); + onDelete(pageToggle, [image]); + }} + /> + + {t("button.deleteFaceAttempts")} + + +
))}
); diff --git a/web/src/views/classification/ModelTrainingView.tsx b/web/src/views/classification/ModelTrainingView.tsx index a05758feb..0bec83406 100644 --- a/web/src/views/classification/ModelTrainingView.tsx +++ b/web/src/views/classification/ModelTrainingView.tsx @@ -928,10 +928,7 @@ function ObjectTrainGrid({
{Object.entries(groups).map(([key, group]) => {