Skip to content

Commit

Permalink
(chore) O3-3996 - Ward app - workspace styling changes (#1384)
Browse files Browse the repository at this point in the history
* (chore) O3-3996 - Ward app - workspace styling changes

* fix workspace action menu icons
  • Loading branch information
chibongho authored Nov 22, 2024
1 parent e4e2223 commit 4d7f15d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ClinicalFormsWorkspaceSideRailIcon: React.FC = () => {
label={t('clinicalForms', 'Clinical forms')}
iconDescription={t('clinicalForms', 'Clinical forms')}
handler={launchPatientWorkspaceCb}
type="ward-patient-clinical-form"
type="ward-patient-clinical-forms"
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function PatientDischargeSideRailIcon() {
label={t('discharge', 'Discharge')}
iconDescription={t('discharge', 'Discharge')}
handler={handler}
type="patient-discharge-workspace"
type="ward-patient-discharge"
/>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
min-height: var(--desktop-workspace-window-height);
}

.patientWorkspace {
display: flex;
height: 100%;
flex-direction: column;
}

.headerPatientDetail {
@include type.type-style('body-compact-02');
margin: 0 layout.$spacing-02;
}

.patientWorkspaceContentSlot {
display: flex;
flex: 1;
flex-direction: column;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { type WardPatientWorkspaceProps } from '../../types';
import WardPatientWorkspaceBanner from '../patient-banner/patient-banner.component';
import styles from './ward-patient.style.scss';
import { type WardConfigObject } from '../../config-schema';
import classNames from 'classnames';

attach('ward-patient-workspace-header-slot', 'patient-vitals-info');

Expand All @@ -15,14 +16,14 @@ export default function WardPatientWorkspace({ wardPatient }: WardPatientWorkspa
return (
<>
{wardPatient && (
<div className={styles.workspaceContainer}>
<div className={classNames(styles.workspaceContainer, styles.patientWorkspace)}>
<WardPatientWorkspaceBanner {...{ wardPatient }} />
<div>
<ExtensionSlot name="ward-patient-workspace-header-slot" state={extensionSlotState} />
</div>
<div>
<ExtensionSlot name="ward-patient-workspace-content-slot" state={extensionSlotState} />
</div>
<ExtensionSlot name="ward-patient-workspace-header-slot" state={extensionSlotState} />
<ExtensionSlot
name="ward-patient-workspace-content-slot"
state={extensionSlotState}
className={styles.patientWorkspaceContentSlot}
/>
</div>
)}
</>
Expand Down

0 comments on commit 4d7f15d

Please sign in to comment.