Skip to content

Commit

Permalink
(fix) - O3-3996 - Ward App - fix styling for patient card footer and …
Browse files Browse the repository at this point in the history
…mother child row
  • Loading branch information
chibongho committed Sep 23, 2024
1 parent cdb8bbd commit 1604bba
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/esm-ward-app/src/beds/occupied-bed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
display: flex;
flex-direction: column;
background-color: vars.$ui-02;
height: fit-content;
}

.bedDivider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const MotherChildRowExtension: WardPatientCard = ({ patient }) => {
<div className={styles.motherOrBabyIconDiv}>
<Icon className={styles.motherOrBabyIcon} size={24} />
</div>
<div className={wardPatientCardStyles.dotSeparatedChildren}>
<div className={classNames(styles.motherOrBabyRowElementsDev, wardPatientCardStyles.dotSeparatedChildren)}>
<WardPatientName patient={patientB} />
<WardPatientIdentifier patient={patientB} />
<WardPatientAge patient={patientB} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
display: flex;
}

.motherOrBabyIconDiv {
.motherOrBabyRowElementsDev {
flex: 1;
}

.motherOrBabyIconDiv {
display: flex;
align-items: center;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ const WardPatientCard: WardPatientCard = (wardPatient) => {
))}
<ExtensionSlot name={headerExtensionSlotName} state={wardPatient} />
</div>
{footerRowElements.length > 0 && (
<div className={styles.wardPatientCardRow}>
{footerRowElements.map((elementId, i) => (
<WardPatientCardElement
key={`ward-card-${patient.uuid}-footer-${i}`}
elementId={elementId}
{...wardPatient}
/>
))}
<ExtensionSlot name={footerExtensionSlotName} state={wardPatient} />
</div>
)}
<ExtensionSlot
name="ward-patient-card-pending-items-slot"
state={wardPatient}
Expand All @@ -40,18 +52,8 @@ const WardPatientCard: WardPatientCard = (wardPatient) => {
<ExtensionSlot
name={rowsExtensionSlotName}
state={wardPatient}
className={classNames(styles.wardPatientCardRow, styles.wardPatientCardExtensionSlot)}
className={classNames(styles.wardPatientCardExtensionSlot)}
/>
<div className={styles.wardPatientCardRow}>
{footerRowElements.map((elementId, i) => (
<WardPatientCardElement
key={`ward-card-${patient.uuid}-footer-${i}`}
elementId={elementId}
{...wardPatient}
/>
))}
<ExtensionSlot name={footerExtensionSlotName} state={wardPatient} />
</div>
<button
className={styles.wardPatientCardButton}
onClick={() => {
Expand Down

0 comments on commit 1604bba

Please sign in to comment.