@@ -213,10 +216,9 @@ const TrainingAreaItem: React.FC<
{trainingArea.geometry ? truncateString(trainingAreaSize, 15) : 0}
- sqm
{trainingAreaLabelsMutation.isPending
diff --git a/frontend/src/features/models/components/dialogs/mobile-filters-dialog.tsx b/frontend/src/features/models/components/dialogs/mobile-filters-dialog.tsx
index fbb57282..da1f2e53 100644
--- a/frontend/src/features/models/components/dialogs/mobile-filters-dialog.tsx
+++ b/frontend/src/features/models/components/dialogs/mobile-filters-dialog.tsx
@@ -1,5 +1,5 @@
import { Dialog } from "@/components/ui/dialog";
-import useDevice from "@/hooks/use-device";
+import useScreenSize from "@/hooks/use-screen-size";
import {
CategoryFilter,
DateRangeFilter,
@@ -36,7 +36,7 @@ const MobileModelFiltersDialog: React.FC = ({
updateQuery,
disabled,
}) => {
- const isMobile = useDevice();
+ const { isMobile } = useScreenSize();;
return (
)}
- {/* Show logs only in modal and when status failed */}
+ {/* Show logs only in modal and when status failed or running */}
{isTrainingDetailsDialog &&
- data?.status !== TrainingStatus.SUCCESS && (
+ (data?.status === TrainingStatus.FAILED || data?.status === TrainingStatus.RUNNING) && (