Skip to content

Commit

Permalink
set meeting modal to static height of 95
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Nov 12, 2024
1 parent a6e9a2c commit 362987c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/resources/js/components/MeetingEditModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@
function onDeleted(event: CustomEvent<{ meetingId: number }>) {
dispatch('deleted', { meetingId: event.detail.meetingId });
}
let dialogClass = 'fixed top-0 start-0 end-0 h-[95vh] md:inset-0 z-50 w-full p-4 flex';
let defaultClass = 'modal-content relative flex flex-col mx-auto h-full min-h-[95vh] max-h-[95vh]';
let bodyClass = 'p-4 md:p-5 space-y-4 flex-1 overflow-y-auto overscroll-contain';
</script>

<Modal bind:open={showModal} size="md" class="modal-content">
<Modal bind:open={showModal} size="md" classDialog={dialogClass} class={defaultClass} classBody={bodyClass}>
<div class="p-2">
<MeetingEditForm {selectedMeeting} {serviceBodies} {formats} on:saved={onSaved} on:deleted={onDeleted} />
</div>
Expand Down

0 comments on commit 362987c

Please sign in to comment.