From bd719041a5ef0f691f7c903b29b7a2ad735dfe9a Mon Sep 17 00:00:00 2001 From: zyc <1439655764@qq.com> Date: Thu, 18 Jun 2026 09:22:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E6=96=B0=E5=BB=BA=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=80=89=E5=95=86=E5=93=81=E5=8D=A1=E5=B0=81=E9=9D=A2?= =?UTF-8?q?=E9=94=81=201.4:1=20=E9=AB=98=E5=BA=A6,=E7=AB=96=E5=9B=BE/?= =?UTF-8?q?=E6=88=AA=E5=9B=BE=E4=B8=8D=E5=86=8D=E6=8B=89=E4=BC=B8=E5=8D=A1?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit object-fit:cover 裁切 + overflow 隐藏,对齐商品库网格做法 Co-Authored-By: Claude Opus 4.8 --- core/frontend/src/project-wizard-page.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/project-wizard-page.css b/core/frontend/src/project-wizard-page.css index 9a39145..34f5778 100644 --- a/core/frontend/src/project-wizard-page.css +++ b/core/frontend/src/project-wizard-page.css @@ -137,7 +137,11 @@ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 7 12 13 4'/%3E%3C/svg%3E") no-repeat center / contain; z-index: 3; } - .pp-grid .product-thumb { aspect-ratio: 1.4 / 1; } + /* 锁死封面区高度:固定 1.4:1 比例 + 裁切溢出,真图用 object-fit:cover 填充, + 避免竖图/截图(如交易明细截图)按原始比例把卡片无限拉高 */ + .pp-grid .product-thumb { aspect-ratio: 1.4 / 1; overflow: hidden; flex-shrink: 0; } + .pp-grid .product-thumb.has-real-media { position: relative; background: var(--background-lighter); } + .pp-grid .product-thumb.has-real-media img { width: 100%; height: 100%; object-fit: cover; display: block; } .pp-grid .product-body { padding: 14px 14px 12px; flex: 1; } .pp-grid .product-name { font-size: 14px; font-weight: 600; color: var(--accent-black);