From a54598853e8e7482da9bb4532cf53699eade4c97 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Fri, 16 May 2025 11:22:59 +0800 Subject: [PATCH] =?UTF-8?q?style(ai-optimized-editor):=20=E4=B8=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=8E=E7=9A=84=E4=BB=A3=E7=A0=81=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E6=B7=BB=E5=8A=A0=E5=85=A8=E9=AB=98=E5=92=8C?= =?UTF-8?q?=E5=85=A8=E5=AE=BD=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 AI优化后的代码编辑器组件中,为 Monaco Editor 组件添加了全高和全宽的 CSS 类,以确保编辑器在父容器中正确扩展。 --- src/components/ai-optimized-editor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ai-optimized-editor.tsx b/src/components/ai-optimized-editor.tsx index e2eeac2..40a2433 100644 --- a/src/components/ai-optimized-editor.tsx +++ b/src/components/ai-optimized-editor.tsx @@ -130,6 +130,7 @@ export function AIProblemEditor({ modified={optimizedCode} language="typescript" theme="vs-dark" + className="h-full w-full" options={{ readOnly: true, minimap: { enabled: false }