From 162f599e2d35729b936a173bd3b7b56b1a3dfb16 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 29 Oct 2025 15:26:20 -0700 Subject: [PATCH] Minor UI fixes. --- .gitignore | 2 ++ app/jobs/[jobId]/_layout.tsx | 1 - components/job-lines/job-lines.jsx | 30 ++++++++++++++-------- components/job-tombstone/job-tombstone.jsx | 3 +++ components/jobs-list/jobs-list.jsx | 5 +++- components/sign-in/sign-in.jsx | 6 ++++- 6 files changed, 33 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 3cc56af..868189d 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ android/** ios/** .env.local + +dist/** \ No newline at end of file diff --git a/app/jobs/[jobId]/_layout.tsx b/app/jobs/[jobId]/_layout.tsx index af391b0..ad92fa3 100644 --- a/app/jobs/[jobId]/_layout.tsx +++ b/app/jobs/[jobId]/_layout.tsx @@ -14,7 +14,6 @@ function JobTabLayout() { tabBarPosition: "top", headerShown: false, animation: "shift", - tabBarStyle: { // marginTop: -50 }, diff --git a/components/job-lines/job-lines.jsx b/components/job-lines/job-lines.jsx index bd24042..6e4dc0c 100644 --- a/components/job-lines/job-lines.jsx +++ b/components/job-lines/job-lines.jsx @@ -3,7 +3,7 @@ import { useQuery } from "@apollo/client"; import { useGlobalSearchParams } from "expo-router"; import React from "react"; import { useTranslation } from "react-i18next"; -import { ScrollView } from "react-native"; +import { ScrollView, useWindowDimensions } from "react-native"; import { ActivityIndicator, DataTable } from "react-native-paper"; import ErrorDisplay from "../error/error-display"; @@ -16,6 +16,8 @@ export default function JobLines() { }, skip: !jobId, }); + const { width, height } = useWindowDimensions(); + const isLandscape = width > height; const { t } = useTranslation(); const onRefresh = async () => { @@ -36,20 +38,22 @@ export default function JobLines() { const job = data.jobs_by_pk; return ( - + - {t("jobdetail.labels.lines_desc")} - + + {t("jobdetail.labels.lines_desc")} + + {t("jobdetail.labels.lines_lbr_ty")} - + {t("jobdetail.labels.lines_lb_hrs")} - + {t("jobdetail.labels.lines_part_type")} - + {t("jobdetail.labels.lines_qty")} @@ -59,14 +63,18 @@ export default function JobLines() { {item.line_desc} - + {item.mod_lbr_ty && t(`jobdetail.lbr_types.${item.mod_lbr_ty}`)} - {item.mod_lb_hrs} - + + {item.mod_lb_hrs} + + {item.part_type && t(`jobdetail.part_types.${item.part_type}`)} - {item.part_qty} + + {item.part_qty} + ))} diff --git a/components/job-tombstone/job-tombstone.jsx b/components/job-tombstone/job-tombstone.jsx index 4ef5c6b..dd06b84 100644 --- a/components/job-tombstone/job-tombstone.jsx +++ b/components/job-tombstone/job-tombstone.jsx @@ -243,6 +243,9 @@ function JobTombstone({ bodyshop }) { + ); } diff --git a/components/jobs-list/jobs-list.jsx b/components/jobs-list/jobs-list.jsx index 82dda10..9d04003 100644 --- a/components/jobs-list/jobs-list.jsx +++ b/components/jobs-list/jobs-list.jsx @@ -48,7 +48,10 @@ export function JobListComponent({ bodyshop }) { const jobs = data ? [...(data?.jobs || []), { id: "footer-spacer" }] : []; return ( - + -