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

fix(dashboard): plus grandes fenêtres de saisie pour actions/consultations #1704

Merged
merged 1 commit into from
Oct 5, 2023
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
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
Loading