Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore) O3-3996 - Ward app - workspace styling changes #1384

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading