fix ui issue

This commit is contained in:
Marshal
2026-07-09 14:10:46 +00:00
parent 3afadcd9f2
commit 3259bd7667
2 changed files with 13 additions and 13 deletions

View File

@@ -207,9 +207,9 @@ function RankedCard({
{/* Wagons */}
<Group gap={4} wrap="nowrap" w={58} justify="flex-end">
<TrainFront size={13} color={cardVar("gray", 6)} />
<Text fw={700} size="sm">
{/* <Text fw={700} size="sm">
{booking.wagons}w
</Text>
</Text> */}
</Group>
{/* State chip / pay countdown */}

View File

@@ -20,7 +20,7 @@ import {
AlertTriangle,
ArrowLeft,
ArrowLeftRight,
Boxes,
// Boxes,
CalendarDays,
CheckCircle2,
ClipboardCheck,
@@ -348,9 +348,9 @@ const BOOKING_COLUMNS: ColumnDef<BatchBoardBookingDetail>[] = [
const b = row.original;
return (
<Group gap={4} wrap="nowrap">
<Badge variant="default" radius="sm" size="sm">
{/* <Badge variant="default" radius="sm" size="sm">
{b.wagons}w
</Badge>
</Badge> */}
<Badge variant="default" radius="sm" size="sm">
{fmtTons(b.weightTons)}
</Badge>
@@ -890,14 +890,14 @@ export default function BatchScheduleDetailPage() {
<KpiStrip
items={[
{
label: "Allocated wagons",
value: data.capacity.maxWagons
? `${data.capacity.allocatedWagons} / ${data.capacity.maxWagons}`
: data.capacity.allocatedWagons,
hint: "on this train",
icon: Boxes,
},
// {
// label: "Allocated wagons",
// value: data.capacity.maxWagons
// ? `${data.capacity.allocatedWagons} / ${data.capacity.maxWagons}`
// : data.capacity.allocatedWagons,
// hint: "on this train",
// icon: Boxes,
// },
{
label: "Train length",
value: data.capacity.maxLengthMeters