diff --git a/web/app/routes/logbook.flights.$id/route.tsx b/web/app/routes/logbook.flights.$id/route.tsx index dc7ee76..fd4d2ec 100644 --- a/web/app/routes/logbook.flights.$id/route.tsx +++ b/web/app/routes/logbook.flights.$id/route.tsx @@ -16,18 +16,10 @@ import { Text, Modal, Button, - Badge, - Fieldset, - Collapse, } from "@mantine/core"; import { useDisclosure } from "@mantine/hooks"; import { useNavigate, useParams } from "@remix-run/react"; -import { - IconPencil, - IconPlaneTilt, - IconPlus, - IconTrash, -} from "@tabler/icons-react"; +import { IconPencil, IconTrash } from "@tabler/icons-react"; import { useMutation, useQuery } from "@tanstack/react-query"; export default function Flight() { @@ -169,11 +161,11 @@ export default function Flight() { {log.waypoint_from || log.waypoint_to ? ( @@ -261,29 +253,29 @@ export default function Flight() { @@ -297,42 +289,48 @@ export default function Flight() { > ) : null} - - - - - - - - + + + + + + + + + + + + + + + + + + {log.time_instrument || log.time_sim_instrument || log.holds_instrument ? ( diff --git a/web/app/ui/display/log-item.tsx b/web/app/ui/display/log-item.tsx index e3cc554..b8540d2 100644 --- a/web/app/ui/display/log-item.tsx +++ b/web/app/ui/display/log-item.tsx @@ -46,23 +46,31 @@ export function VerticalLogItem({ if (date) content = (content as string).split("T")[0]; return ( - + {label} {list ? ( - - {(content as string[]).map((item) => ( - - {item} - - ))} - + <> + {(content as string[]).length > 0 ? ( + + {(content as string[]).map((item) => ( + + {item} + + ))} + + ) : ( + + + + )} + ) : ( {content === "" ? : content}