From 77e9ea987bf3e123abcd015babd3517ed1ad019d Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Thu, 30 Nov 2023 22:08:25 +0800 Subject: [PATCH] Design details for offers modal (#19208) no issues - consistent spacing between modal and preview modal - no action button jumping between the modals - cleaner stats section in the edit screen --- apps/admin-x-design-system/src/global/modal/Modal.tsx | 2 +- apps/admin-x-design-system/src/global/modal/PreviewModal.tsx | 2 +- .../src/components/settings/growth/offers/EditOfferModal.tsx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/admin-x-design-system/src/global/modal/Modal.tsx b/apps/admin-x-design-system/src/global/modal/Modal.tsx index 0c8ba75126..9622f7eeb7 100644 --- a/apps/admin-x-design-system/src/global/modal/Modal.tsx +++ b/apps/admin-x-design-system/src/global/modal/Modal.tsx @@ -249,7 +249,7 @@ const Modal: React.FC = ({ backdropClasses, 'p-4 md:p-[4vmin]' ); - paddingClasses = 'p-8'; + paddingClasses = 'p-7'; headerClasses = clsx( headerClasses, '-inset-x-8' diff --git a/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx b/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx index f4ec405e88..565080a339 100644 --- a/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx +++ b/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx @@ -281,7 +281,7 @@ export const PreviewModalContent: React.FC = ({ {sidebar &&
{sidebarHeader ? sidebarHeader : ( -
+
{title} {sidebarButtons ? sidebarButtons : }
diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx index 7e48542513..3492ebad1f 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx @@ -95,10 +95,9 @@ const Sidebar: React.FC<{ }; return ( -
+
-

Stats

Created on