diff --git a/src/components/common/Modal/Modal.tsx b/src/components/common/Modal/Modal.tsx index 0cac8cf..adce0d9 100644 --- a/src/components/common/Modal/Modal.tsx +++ b/src/components/common/Modal/Modal.tsx @@ -20,7 +20,7 @@ const overlayStyles = tv({ }); const modalStyles = tv({ - base: "p-5 w-full max-w-md max-h-full rounded-2xl bg-gray-subtle forced-colors:bg-[Canvas] flex flex-col items-start gap-4 shadow-2xl bg-clip-padding border border-gray-dim", + base: "p-5 w-[400px] max-w-full max-h-full rounded-2xl bg-gray-subtle forced-colors:bg-[Canvas] flex flex-col items-start gap-4 shadow-2xl bg-clip-padding border border-gray-dim", variants: { isEntering: { true: "animate-in zoom-in-105 ease-out duration-2", @@ -58,3 +58,11 @@ export function ModalHeader({ title, children }: ModalHeaderProps) { ); } + +export function ModalFooter({ children }: { children: React.ReactNode }) { + return ( + + ); +} diff --git a/src/components/quests/EditQuestCostsModal/EditQuestCostsModal.tsx b/src/components/quests/EditQuestCostsModal/EditQuestCostsModal.tsx index 2683178..d2371a9 100644 --- a/src/components/quests/EditQuestCostsModal/EditQuestCostsModal.tsx +++ b/src/components/quests/EditQuestCostsModal/EditQuestCostsModal.tsx @@ -30,7 +30,7 @@ const CostInput = memo(function CostInput({
diff --git a/src/components/quests/EditQuestTimeRequiredModal/EditQuestTimeRequiredModal.tsx b/src/components/quests/EditQuestTimeRequiredModal/EditQuestTimeRequiredModal.tsx index 2d1515d..bf9a15f 100644 --- a/src/components/quests/EditQuestTimeRequiredModal/EditQuestTimeRequiredModal.tsx +++ b/src/components/quests/EditQuestTimeRequiredModal/EditQuestTimeRequiredModal.tsx @@ -39,7 +39,7 @@ const TimeRequiredInput = memo(function TimeRequiredInput({
@@ -51,7 +51,7 @@ const TimeRequiredInput = memo(function TimeRequiredInput({ /> @@ -63,7 +63,7 @@ const TimeRequiredInput = memo(function TimeRequiredInput({ /> setBirthplace(key as Jurisdiction)} placeholder="Select state" + className="w-full" > {Object.entries(JURISDICTIONS).map(([value, label]) => ( @@ -46,14 +55,14 @@ const EditBirthplaceModal = ({ ))} -
+ -
+ ); diff --git a/src/components/settings/EditNameSetting/EditNameSetting.tsx b/src/components/settings/EditNameSetting/EditNameSetting.tsx index 18296e6..c73642c 100644 --- a/src/components/settings/EditNameSetting/EditNameSetting.tsx +++ b/src/components/settings/EditNameSetting/EditNameSetting.tsx @@ -1,4 +1,11 @@ -import { Button, Form, Modal, TextField } from "@/components/common"; +import { + Button, + Form, + Modal, + ModalFooter, + ModalHeader, + TextField, +} from "@/components/common"; import { api } from "@convex/_generated/api"; import type { Doc } from "@convex/_generated/dataModel"; import { useMutation } from "convex/react"; @@ -30,17 +37,23 @@ const EditNameModal = ({ return ( +
- Edit name - -
+ + -
+
); diff --git a/src/components/settings/EditResidenceSetting/EditResidenceSetting.tsx b/src/components/settings/EditResidenceSetting/EditResidenceSetting.tsx index d87302a..b4c9bcf 100644 --- a/src/components/settings/EditResidenceSetting/EditResidenceSetting.tsx +++ b/src/components/settings/EditResidenceSetting/EditResidenceSetting.tsx @@ -2,6 +2,7 @@ import { Button, Form, Modal, + ModalFooter, ModalHeader, Select, SelectItem, @@ -46,6 +47,7 @@ const EditResidenceModal = ({ selectedKey={residence} onSelectionChange={(key) => setResidence(key as Jurisdiction)} placeholder="Select state" + className="w-full" > {Object.entries(JURISDICTIONS).map(([value, label]) => ( @@ -53,14 +55,14 @@ const EditResidenceModal = ({ ))} -
+ -
+ );