From c0ec063333cc51ef147141c9d6770f60bc2782d1 Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 18 Mar 2025 23:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/api/script.ts | 1 + .../script/components/UnsupportedFilePreview/index.module.less | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; }