diff --git a/back/api/script.ts b/back/api/script.ts index b2662609..3a67e577 100644 --- a/back/api/script.ts +++ b/back/api/script.ts @@ -202,6 +202,7 @@ export default (app: Router) => { body: Joi.object({ filename: Joi.string().required(), path: Joi.string().allow(''), + type: Joi.string().optional(), }), }), async (req: Request, res: Response, next: NextFunction) => { diff --git a/src/pages/script/components/UnsupportedFilePreview/index.module.less b/src/pages/script/components/UnsupportedFilePreview/index.module.less index 8f28ebce..688e4857 100644 --- a/src/pages/script/components/UnsupportedFilePreview/index.module.less +++ b/src/pages/script/components/UnsupportedFilePreview/index.module.less @@ -12,7 +12,7 @@ background: var(--card-background); padding: 24px; border-radius: 12px; - max-width: 360px; + max-width: 390px; width: 100%; transition: all 0.3s ease; }