fix: 修复 compact 模式下对话框底部大量空白

高特异性 min-height 规则覆盖了 compact 模式的 max-height: 126px,
导致 .ecom-command-composer 在缩小状态下仍保持 218px+ 的最小高度。
在文件末尾添加更高特异性的 is-compact 覆盖,强制 min-height: 118px。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 11:33:13 +08:00
parent 6d93c2b9b8
commit 863f1f075e
+12
View File
@@ -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;
}