fix: Wrong padding on "Invite Team Members" modal (CALCOM-8414-FIX) (#9273)

* Fix margin from invitation modal content

* Change margin to padding in Dialog component, so the divider absolute property works properly

* Update Dialog.tsx padding from the button top from 24px to 16px

* Change Dialog content padding to match figma design, having the padding bottom 16px

* Update FormBuilder.tsx to match figma

* Update FormBuilder.tsx Dialog content inner div paddings

* Update FormBuilder.tsx, remove relative to fix divider

* Fixing padding across dialogs

* nit

* Fixes e2e

* undo wrong padding

* fixed footer with divider

---------

Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: zomars <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-06-07 19:55:47 +00:00
1 parent 3d5ff82062
commit f86c6734a7
4 files changed
+8 -8

No files matched your search

@@ -131,7 +131,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
</div>
<Form form={newMemberFormMethods} handleSubmit={(values) => props.onSubmit(values)}>
<div className="space-y-6">
<div className="my-6 space-y-6">
{/* Indivdual Invite */}
{modalImportMode === "INDIVIDUAL" && (
<Controller
@@ -240,9 +240,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
/>
)}
/>
</div>
<DialogFooter showDivider>
<div className="mr-auto flex">
<div className="flex">
<Button
type="button"
color="minimal"
@@ -271,6 +269,8 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
</Button>
)}
</div>
</div>
<DialogFooter showDivider>
<Button
type="button"
color="minimal"
@@ -293,7 +293,7 @@ export default function CreateEventTypeDialog({
</div>
)}
</div>
<div className="mt-8 flex justify-end gap-x-2">
<div className="mt-10 flex justify-end gap-x-2">
<DialogClose />
<Button type="submit" loading={createMutation.isLoading}>
{t("continue")}
@@ -425,7 +425,7 @@ export const FormBuilder = function FormBuilder({
})
}>
<DialogContent className="max-h-none p-0" data-testid="edit-field-dialog">
<div className="h-auto max-h-[85vh] overflow-auto px-8 pt-8 pb-7">
<div className="h-auto max-h-[85vh] overflow-auto px-8 pt-8 pb-10">
<DialogHeader
title={t("add_a_booking_question")}
subtitle={t("form_builder_field_add_subtitle")}
@@ -545,7 +545,7 @@ export const FormBuilder = function FormBuilder({
/>
</Form>
</div>
<DialogFooter className="relative rounded px-8 pb-6" showDivider>
<DialogFooter className="relative rounded px-8 pb-4" showDivider>
<DialogClose color="secondary">{t("cancel")}</DialogClose>
<Button data-testid="field-add-save" type="submit" form="form-builder">
{isFieldEditMode ? t("save") : t("add")}