From cac2adde31994b7fd9f4e9de5985ca75d0143a4a Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 20 Oct 2025 17:17:53 -0600 Subject: [PATCH] Improvements to gradients and making face library consistent --- .../components/card/ClassificationCard.tsx | 46 ++++++++++--------- .../overlay/FaceSelectionDialog.tsx | 2 +- web/src/pages/FaceLibrary.tsx | 6 +-- 3 files changed, 29 insertions(+), 25 deletions(-) diff --git a/web/src/components/card/ClassificationCard.tsx b/web/src/components/card/ClassificationCard.tsx index ca4f430d2..4be8284e3 100644 --- a/web/src/components/card/ClassificationCard.tsx +++ b/web/src/components/card/ClassificationCard.tsx @@ -99,28 +99,32 @@ export function ClassificationCard({ {t("information.pixels", { ns: "common", area: imageArea })} )} -
-
-
-
- {data.name == "unknown" ? t("details.unknown") : data.name} +
+
+
+
+ {data.name == "unknown" ? t("details.unknown") : data.name} +
+ {data.score && ( +
+ {Math.round(data.score * 100)}%
- {data.score && ( -
- {Math.round(data.score * 100)}% -
- )} -
-
- {children} -
+ )} +
+
+ {children}
diff --git a/web/src/components/overlay/FaceSelectionDialog.tsx b/web/src/components/overlay/FaceSelectionDialog.tsx index 3644ff1cf..174428a12 100644 --- a/web/src/components/overlay/FaceSelectionDialog.tsx +++ b/web/src/components/overlay/FaceSelectionDialog.tsx @@ -62,7 +62,7 @@ export default function FaceSelectionDialog({ ); return ( -
+
{newFace && ( onTrainAttempt(data, name)} > - + onReprocess(data)} /> @@ -954,7 +954,7 @@ function FaceGrid({ { e.stopPropagation(); onDelete(pageToggle, [image]);