Skip to content

Commit

Permalink
update UI grid/layout for mobile first viewing for various manifest s…
Browse files Browse the repository at this point in the history
…ections
  • Loading branch information
dpgraham4401 committed Jan 9, 2024
1 parent aba3cef commit bb8ae0b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions client/src/components/Manifest/GeneralInfo/GeneralInfoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function GeneralInfoForm({ manifestData, isDraft }: GeneralInfoFormProps)
const { errors } = manifestForm.formState;
return (
<>
<Row>
<Row xs={1} sm={3}>
<Col>
<HtForm.Group>
<HtForm.Label htmlFor="manifestTrackingNumber">MTN</HtForm.Label>
Expand All @@ -53,10 +53,10 @@ export function GeneralInfoForm({ manifestData, isDraft }: GeneralInfoFormProps)
<ManifestTypeSelect readOnly={readOnly} isDraft={isDraft} />
</Col>
</Row>
<Row>
<Row xs={1} sm={3}>
<Col>
<HtForm.Group>
<HtForm.Label htmlFor="createdDate">
<HtForm.Label htmlFor="createdDate" className="text-nowrap">
{'Created Date '}
<InfoIconTooltip message={'This field is managed by EPA'} />
</HtForm.Label>
Expand All @@ -75,7 +75,7 @@ export function GeneralInfoForm({ manifestData, isDraft }: GeneralInfoFormProps)
</Col>
<Col>
<HtForm.Group>
<HtForm.Label htmlFor="updatedDate">
<HtForm.Label htmlFor="updatedDate" className="text-nowrap">
{'Last Update Date '}
<InfoIconTooltip message={'This field is managed by EPA'} />
</HtForm.Label>
Expand All @@ -93,7 +93,7 @@ export function GeneralInfoForm({ manifestData, isDraft }: GeneralInfoFormProps)
</Col>
<Col>
<HtForm.Group>
<HtForm.Label htmlFor="shippedDate">
<HtForm.Label htmlFor="shippedDate" className="text-nowrap">
{'Shipped Date '}
<InfoIconTooltip message={'This field is managed by EPA'} />
</HtForm.Label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ function TransporterTable({ transporters, arrayFieldMethods, setupSign }: Transp
return (
<Card key={transporter.epaSiteId} className="py-2 px-4 my-2">
<Row className="d-flex justify-content-between">
<Col xs={8} className="d-flex align-items-center">
<Col xs={9} className="d-flex align-items-center">
<div>
<h5 className="d-inline border-3 me-3">{transporter.order} </h5>
<span>{transporter.name}</span>
<span className="text-nowrap overflow-scroll">{transporter.name}</span>
</div>
</Col>
<Col xs={1}>
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/RcraSite/RcraSiteDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function RcraSiteDetails({ handler }: RcraSiteDetailsProps) {
return <p>error</p>;
}
return (
<div className="py-2">
<div className="py-2 mb-3">
<Row>
<Col xs={10}>
<h4>{handler.name}</h4>
Expand All @@ -32,9 +32,9 @@ export function RcraSiteDetails({ handler }: RcraSiteDetailsProps) {
)}
</Col>
</Row>
<Row className="mb-0">
<Row className="mb-0" xs={1} sm={2}>
<Col>
<p className="fw-bold">EPA ID number</p>
<p className="fw-bold mb-1">EPA ID number</p>
<p>{handler.epaSiteId}</p>
</Col>
<Col>
Expand All @@ -58,7 +58,7 @@ export function RcraSiteDetails({ handler }: RcraSiteDetailsProps) {
</p>
</Col>
</Row>
<Row>
<Row xs={1} sm={2} className="gy-3">
<Col>
<AddressListGroup title="Address" address={handler.siteAddress} />
</Col>
Expand Down

0 comments on commit bb8ae0b

Please sign in to comment.