Skip to content

Commit

Permalink
(fix) Replace overlays in the Appointments app (#1133)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Goodrich <[email protected]>
  • Loading branch information
kb019 and mogoodrich authored May 31, 2024
1 parent b521561 commit c419ca3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const Appointments: React.FC = () => {
/>
<AppointmentMetrics appointmentServiceType={appointmentServiceType} />
<AppointmentTabs appointmentServiceType={appointmentServiceType} />
<WorkspaceOverlay contextKey="appointments" />
</SelectedDateContext.Provider>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ const AppointmentsForm: React.FC<AppointmentsFormProps> = ({

const [isRecurringAppointment, setIsRecurringAppointment] = useState(false);
const [isAllDayAppointment, setIsAllDayAppointment] = useState(false);

const defaultRecurringPatternType = recurringPattern?.type || 'DAY';
const defaultRecurringPatternPeriod = recurringPattern?.period || 1;
const defaultRecurringPatternDaysOfWeek = recurringPattern?.daysOfWeek || [];
Expand Down Expand Up @@ -491,7 +490,7 @@ const AppointmentsForm: React.FC<AppointmentsFormProps> = ({

<section className={styles.formGroup}>
<span className={styles.heading}>{t('dateTime', 'Date & Time')}</span>
<div>
<div className={styles.dateTimeFields}>
{isRecurringAppointment && (
<div className={styles.inputContainer}>
{allowAllDayAppointments && (
Expand Down
8 changes: 8 additions & 0 deletions packages/esm-appointments-app/src/form/appointments-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ $openmrs-background-grey: #ededed;
align-items: center;
}

.dateTimeFields {
max-width: 100%;
}

:global(.omrs-breakpoint-gt-tablet) .dateTimeFields {
max-width: 32.25rem;
}

.button {
height: 4rem;
display: flex;
Expand Down

0 comments on commit c419ca3

Please sign in to comment.