fix issue

This commit is contained in:
Marshal
2026-07-31 12:11:47 +00:00
parent 091d655baa
commit 8b9dd76710
5 changed files with 161 additions and 22 deletions

View File

@@ -389,10 +389,16 @@ export function LegCapacityPanel({ schedule }: { schedule: TrainScheduleDetail }
<Table.Tbody>
{e.bookings.map((b) => (
<Table.Tr key={b.bookingId}>
<Table.Td w="34%">
<Group gap={6}>
<Text size="sm" fw={500}>
<Table.Td w="50%">
<Group gap={6} wrap="nowrap">
<Text size="sm" fw={500} style={{ whiteSpace: "nowrap" }}>
{b.reference}
{b.route ? (
<Text span size="xs" c="dimmed">
{" "}
({b.route})
</Text>
) : null}
</Text>
{b.unallocated ? (
<Badge size="xs" color="orange" variant="filled">
@@ -401,12 +407,7 @@ export function LegCapacityPanel({ schedule }: { schedule: TrainScheduleDetail }
) : null}
</Group>
</Table.Td>
<Table.Td w="26%">
<Text size="xs" c="dimmed" style={{ whiteSpace: "nowrap" }}>
{b.route ?? "—"}
</Text>
</Table.Td>
<Table.Td w="20%">
<Table.Td w="25%">
<Group gap={4} wrap="nowrap">
<Train size={12} />
<Text size="xs" c="dimmed">
@@ -416,7 +417,7 @@ export function LegCapacityPanel({ schedule }: { schedule: TrainScheduleDetail }
</Text>
</Group>
</Table.Td>
<Table.Td w="20%">
<Table.Td w="25%">
<Group gap={4} wrap="nowrap">
<Weight size={12} />
<Text size="xs" c="dimmed">