From 92f66397411597e525d0409e48ec74d57ebe1b6f Mon Sep 17 00:00:00 2001 From: Roe-xin Date: Tue, 16 Dec 2025 15:19:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AF=B9=E8=AF=9D=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=B0=86=E8=BE=93=E5=85=A5=E6=A1=86=E5=9B=BA=E5=AE=9A=E5=9C=A8?= =?UTF-8?q?=E5=BA=95=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/webviewContent.ts | 64 ++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/src/views/webviewContent.ts b/src/views/webviewContent.ts index fa6fb67..b9b9982 100644 --- a/src/views/webviewContent.ts +++ b/src/views/webviewContent.ts @@ -16,6 +16,7 @@ export function getWebviewContent(iconUri?: string): string { margin: 0; padding: 20px; height: 100vh; + box-sizing: border-box; display: flex; flex-direction: column; } @@ -33,11 +34,14 @@ export function getWebviewContent(iconUri?: string): string { flex: 1; display: flex; flex-direction: column; + min-height: 0; + overflow: hidden; } .messages { flex: 1; overflow-y: auto; margin-bottom: 15px; + min-height: 0; } .message { margin-bottom: 12px; @@ -57,6 +61,7 @@ export function getWebviewContent(iconUri?: string): string { .input-area { border-top: 1px solid var(--vscode-panel-border); padding-top: 15px; + flex-shrink: 0; } .input-group { display: flex; @@ -194,6 +199,7 @@ export function getWebviewContent(iconUri?: string): string { gap: 8px; margin-top: 10px; flex-wrap: wrap; + flex-shrink: 0; } .quick-btn { padding: 6px 12px; @@ -205,11 +211,12 @@ export function getWebviewContent(iconUri?: string): string { font-size: 12px; } .file-reader-section { - margin-bottom: 20px; + margin-bottom: 15px; padding: 15px; background: var(--vscode-input-background); border: 1px solid var(--vscode-input-border); border-radius: 8px; + flex-shrink: 0; } .file-reader-section h3 { margin: 0 0 10px 0; @@ -234,7 +241,7 @@ export function getWebviewContent(iconUri?: string): string { background: var(--vscode-editor-background); border: 1px solid var(--vscode-panel-border); border-radius: 4px; - max-height: 300px; + max-height: 120px; overflow-y: auto; font-family: 'Courier New', monospace; font-size: 12px; @@ -254,12 +261,13 @@ export function getWebviewContent(iconUri?: string): string { margin-top: 10px; } .file-editor-section { - margin-bottom: 20px; + margin-bottom: 15px; padding: 15px; background: var(--vscode-input-background); border: 1px solid var(--vscode-input-border); border-radius: 8px; display: none; + flex-shrink: 0; } .file-editor-section.active { display: block; @@ -298,7 +306,6 @@ export function getWebviewContent(iconUri?: string): string { display: flex; align-items: center; gap: 6px; - padding: 0 20px; height: 40px; background: transparent; border: none; @@ -423,32 +430,31 @@ export function getWebviewContent(iconUri?: string): string {

专注于真实FPGA研发的Verilog智能体编程平台

-
-

📁 文件读取

-
- - -
-
- 文件内容将在这里显示... -
- -
- -
-

✏️ 编辑文件:

- -
- - -
-
-
+
+

📁 文件读取

+
+ + +
+
+ 文件内容将在这里显示... +
+ +
+ +
+

✏️ 编辑文件:

+ +
+ + +
+
👋 你好!我是 IC Coder 助手,可以帮你生成代码、回答问题。