Skip to content

Commit

Permalink
fix(dashboard): plus grandes fenêtres de saisie pour actions/consulta…
Browse files Browse the repository at this point in the history
…tions (#1704)
  • Loading branch information
arnaudambro authored Oct 5, 2023
1 parent ad8ea00 commit 89e2e93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dashboard/src/components/ActionModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function ActionModal() {
};

return (
<ModalContainer open={open} size="3xl" onAfterLeave={onAfterLeave}>
<ModalContainer open={open} size="full" onAfterLeave={onAfterLeave}>
<ActionContent
key={open}
personId={personId}
Expand Down Expand Up @@ -389,7 +389,7 @@ function ActionContent({ onClose, action, personId = null, personIds = null, isM
/>
)}
<div
className={['tw-flex tw-w-full tw-flex-wrap tw-overflow-y-auto tw-p-4 sm:tw-h-[50vh]', activeTab !== 'Informations' && 'tw-hidden']
className={['tw-flex tw-w-full tw-flex-wrap tw-overflow-y-auto tw-p-4 sm:tw-h-[90vh]', activeTab !== 'Informations' && 'tw-hidden']
.filter(Boolean)
.join(' ')}>
<div className="tw-flex tw-w-full tw-flex-col tw-text-left sm:tw-flex-row">
Expand Down Expand Up @@ -608,7 +608,7 @@ function ActionContent({ onClose, action, personId = null, personIds = null, isM
</div>
{!['restricted-access'].includes(user.role) && (
<div
className={['tw-flex tw-w-full tw-flex-col tw-gap-4 tw-overflow-y-auto sm:tw-h-[50vh]', activeTab !== 'Commentaires' && 'tw-hidden']
className={['tw-flex tw-w-full tw-flex-col tw-gap-4 tw-overflow-y-auto sm:tw-h-[90vh]', activeTab !== 'Commentaires' && 'tw-hidden']
.filter(Boolean)
.join(' ')}>
<CommentsModule
Expand Down Expand Up @@ -655,7 +655,7 @@ function ActionContent({ onClose, action, personId = null, personIds = null, isM
</div>
)}
<div
className={['tw-flex tw-w-full tw-flex-col tw-gap-4 tw-overflow-y-auto sm:tw-h-[50vh]', activeTab !== 'Historique' && 'tw-hidden']
className={['tw-flex tw-w-full tw-flex-col tw-gap-4 tw-overflow-y-auto sm:tw-h-[90vh]', activeTab !== 'Historique' && 'tw-hidden']
.filter(Boolean)
.join(' ')}>
<ActionHistory action={action} />
Expand Down
4 changes: 2 additions & 2 deletions dashboard/src/components/ConsultationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function ConsultationModal() {
};

return (
<ModalContainer open={open} size="3xl" onAfterLeave={onAfterLeave}>
<ModalContainer open={open} size="full" onAfterLeave={onAfterLeave}>
<ConsultationContent
key={open}
personId={personId}
Expand Down Expand Up @@ -288,7 +288,7 @@ function ConsultationContent({ personId, consultation, date, onClose }) {
/>
<form
id="add-consultation-form"
className={['tw-flex tw-h-[50vh] tw-w-full tw-flex-wrap tw-overflow-y-auto tw-p-4', activeTab !== 'Informations' && 'tw-hidden']
className={['tw-flex tw-h-[90vh] tw-w-full tw-flex-wrap tw-overflow-y-auto tw-p-4', activeTab !== 'Informations' && 'tw-hidden']
.filter(Boolean)
.join(' ')}
onSubmit={(e) => {
Expand Down

0 comments on commit 89e2e93

Please sign in to comment.