diff --git a/apps/frontend/src/components/launches/import-debug-post.modal.tsx b/apps/frontend/src/components/launches/import-debug-post.modal.tsx index 65c28593..14fed8dd 100644 --- a/apps/frontend/src/components/launches/import-debug-post.modal.tsx +++ b/apps/frontend/src/components/launches/import-debug-post.modal.tsx @@ -147,7 +147,7 @@ export const ImportDebugPostModal: FC<{ close: () => void }> = ({ close }) => {
{t('debug_info', 'Debug Info')}
-
+
{t('provider', 'Provider')}: @@ -175,7 +175,7 @@ export const ImportDebugPostModal: FC<{ close: () => void }> = ({ close }) => { {t('error_details', 'Error Details')}: -
+
{parsed._debug.errors.map((err, i) => (
[{err.platform}] {err.message} diff --git a/apps/frontend/src/components/layout/impersonate.tsx b/apps/frontend/src/components/layout/impersonate.tsx index 4cc6bdad..e81d0429 100644 --- a/apps/frontend/src/components/layout/impersonate.tsx +++ b/apps/frontend/src/components/layout/impersonate.tsx @@ -433,6 +433,7 @@ const ImportDebugPost = () => { const handleClick = useCallback(() => { openModal({ title: t('import_debug_post', 'Import Debug Post'), + maxSize: 800, children: (close) => , }); }, []); diff --git a/apps/frontend/src/components/layout/new-modal.tsx b/apps/frontend/src/components/layout/new-modal.tsx index fdc3704a..090f4366 100644 --- a/apps/frontend/src/components/layout/new-modal.tsx +++ b/apps/frontend/src/components/layout/new-modal.tsx @@ -31,6 +31,7 @@ interface OpenModalInterface { modal?: string; }; size?: string | number; + maxSize?: string | number; height?: string | number; id?: string; } @@ -200,10 +201,11 @@ export const Component: FC<{ modal.size ? '' : 'min-w-[600px]', modal.fullScreen && 'h-full' )} - {...((!!modal.size || !!modal.height) && { + {...((!!modal.size || !!modal.height || !!modal.maxSize) && { style: { ...(modal.size ? { width: modal.size } : {}), ...(modal.height ? { height: modal.height } : {}), + ...(modal.maxSize ? { maxWidth: modal.maxSize } : {}), }, })} onClick={(e) => e.stopPropagation()}