From 863f1f075e316ccca15fe396daa525808c6fb584 Mon Sep 17 00:00:00 2001 From: Stringadmin Date: Fri, 12 Jun 2026 11:33:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20compact=20=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E5=AF=B9=E8=AF=9D=E6=A1=86=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E5=A4=A7=E9=87=8F=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 高特异性 min-height 规则覆盖了 compact 模式的 max-height: 126px, 导致 .ecom-command-composer 在缩小状态下仍保持 218px+ 的最小高度。 在文件末尾添加更高特异性的 is-compact 覆盖,强制 min-height: 118px。 Co-Authored-By: Claude Opus 4.7 --- src/styles/ecommerce-standalone.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/styles/ecommerce-standalone.css b/src/styles/ecommerce-standalone.css index 9c9e0ed..7809960 100644 --- a/src/styles/ecommerce-standalone.css +++ b/src/styles/ecommerce-standalone.css @@ -11889,3 +11889,15 @@ html body #root .ecommerce-standalone.web-shell .ecom-watermark-workspace { --ecommerce-topbar-height: 62px; } } + +/* Compact composer override: force small dimensions when is-compact is active, beating all min-height rules. */ +html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"] .ecom-command-composer-wrap.has-generated.is-compact .clone-ai-input-wrapper.ecom-command-composer, +html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"] .ecom-command-composer-wrap.has-generated.is-compact .clone-ai-input-wrapper.ecom-command-composer:has(.ecom-command-asset-popover) { + min-height: 118px !important; + max-height: 126px !important; +} + +html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"] .ecom-command-composer-wrap.has-generated.is-compact .ecom-command-composer textarea { + min-height: 22px !important; + max-height: 22px !important; +}