From c7bdc2a6ca97ad196ee13befb3318324a7a3bb9b Mon Sep 17 00:00:00 2001 From: EMRG Evolution Date: Thu, 20 Aug 2026 18:28:49 +0800 Subject: [PATCH] emrg: GUI chat width full-left tool rows/composer + file-tree icon stroke fix (rants 17:50:30 + 17:56:33) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - tool rows/groups/output no longer constrained to 760px centered — full-width left-aligned (message body keeps 760px reading width; rants 2026-08-20T17:50:30) - composer area (status bar + input) full-width instead of 808px centered - file-tree icons: .ft-icon/.ft-chevron path fill only when no explicit fill attr, preserving stroke-outline paths (file icons regain their content lines instead of being solid blobs; rant 2026-08-20T17:56:33) --- emrg/gui/renderer/css/layout.css | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/emrg/gui/renderer/css/layout.css b/emrg/gui/renderer/css/layout.css index 407d79d3..81768580 100644 --- a/emrg/gui/renderer/css/layout.css +++ b/emrg/gui/renderer/css/layout.css @@ -302,13 +302,24 @@ margin-left: auto; margin-right: auto; } - -/* 输入区 */ +/* 工具执行全宽左对齐(宿主 2026-08-20 17:50:30):消息正文保持 760px 阅读宽度, + 工具行/组/输出不受限,铺满整个聊天窗口左侧。 */ +.session-view > .tool-row, +.session-view > .tool-group, +.session-view > .tool-group .tool-group-rows, +.session-view > .tool-output, +.session-view > .tool-expand-btn { + max-width: none; + margin-left: 0; + margin-right: 0; +} + +/* 输入区(宿主 2026-08-20 17:50:30:状态栏/输入框 100% 全宽,不再 808px 居中) */ #composer-wrap { position: relative; /* / 指令补全菜单锚点(rant 19:44 P1) */ padding: var(--sp-2) var(--sp-5) var(--sp-4); - max-width: 808px; - margin: 0 auto; + max-width: none; + margin: 0; width: 100%; } @@ -633,7 +644,7 @@ body.sidebar-collapsed #app { color: currentColor; /* mono:图标颜色跟随文字色 */ fill: currentColor; } -.ft-icon path { fill: currentColor; } +.ft-icon path:not([fill]) { fill: currentColor; } /* 展开/收起 chevron(VS Code 风格 ▸/▾,rant 2026-08-13T20:58:57) */ .ft-chevron { flex: none; @@ -643,7 +654,7 @@ body.sidebar-collapsed #app { color: currentColor; fill: currentColor; } -.ft-chevron path { fill: currentColor; } +.ft-chevron path:not([fill]) { fill: currentColor; } .ft-name { flex: 1; overflow: hidden;