From 3b662ec3e8c5e08193ba73534a90ce3ed31f785e Mon Sep 17 00:00:00 2001 From: langxm Date: Wed, 14 Oct 2026 04:21:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(UI):=20=E5=93=8D=E5=BA=94=E5=BC=8F?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E2=80=94=E2=80=94=E7=AA=97=E5=8F=A3=E9=AB=98?= =?UTF-8?q?=E5=BA=A6>=3D760px=20=E4=B8=8A=E4=B8=8B=E5=B8=83=E5=B1=80(?= =?UTF-8?q?=E4=B8=8A=E5=AF=B9=E8=AF=9D=E6=B5=81+=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E3=80=81=E4=B8=8B=E7=BC=96=E8=BE=91=E5=99=A8=EF=BC=8C?= =?UTF-8?q?=E8=B4=B4=E8=BF=91=E6=99=AE=E9=80=9AAI=E5=B7=A5=E5=85=B7),=20?= =?UTF-8?q?=E4=BD=8E=E4=BA=8E=E5=88=99=E5=B7=A6=E5=8F=B3=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 3051448..c9c25ea 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -33,9 +33,16 @@ body{font-family:var(--sans);background:var(--bg);color:var(--text);font-size:14 .platform{font-size:12px;color:var(--text2);display:flex;align-items:center;gap:6px} .platform .dot{width:8px;height:8px;border-radius:50%;background:var(--green)} /* ===== 主区 ===== */ -.main{flex:1;display:flex;min-height:0} -/* 左对话流 */ -.chat{width:46%;min-width:400px;border-right:1px solid var(--line);background:var(--card);display:flex;flex-direction:column;min-height:0} +.main{flex:1;display:flex;min-height:0;flex-direction:column} +/* 高窗口(≥760px):上下布局 —— 上对话流(含输入框,贴近普通 AI 工具体验),下编辑器 */ +.chat{width:100%;min-width:0;border-right:none;border-bottom:1px solid var(--line);background:var(--card);display:flex;flex-direction:column;min-height:0;flex:5} +.editor{flex:4;min-height:180px} +/* 低窗口:左右布局(屏幕高度不足的折中) */ +@media (max-height:759px){ + .main{flex-direction:row} + .chat{width:46%;min-width:400px;border-right:1px solid var(--line);border-bottom:none;flex:none} + .editor{flex:1;min-height:0} +} .chat-head{flex:none;padding:10px 16px;border-bottom:1px solid var(--line2);font-size:12px;color:var(--text2);display:flex;gap:10px;align-items:center} .chat-head .prog{flex:1;height:5px;background:var(--line2);border-radius:3px;overflow:hidden} .chat-head .prog i{display:block;height:100%;width:60%;background:linear-gradient(90deg,var(--blue),var(--green));border-radius:3px} @@ -87,7 +94,8 @@ body{font-family:var(--sans);background:var(--bg);color:var(--text);font-size:14 .chat-input input{flex:1;border:1.5px solid var(--line);border-radius:8px;padding:9px 12px;font-size:13px;outline:none;font-family:var(--sans)} .chat-input input:focus{border-color:var(--blue)} /* ===== 右:统一输入区 ===== */ -.editor{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--card);min-height:0} +.editor{flex:4;min-width:0;display:flex;flex-direction:column;background:var(--card);min-height:180px} +@media (max-height:759px){ .editor{flex:1;min-height:0} } .editor-head{flex:none;display:flex;align-items:center;gap:10px;padding:9px 16px;border-bottom:1px solid var(--line2);background:var(--line2);font-size:12px;color:var(--text2)} .editor-head .morph{display:flex;gap:4px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:2px;font-size:11.5px} .editor-head .morph span{padding:3px 12px;border-radius:13px;color:var(--text3)}