fix(products): 移除thumb max-height限制,修复竖屏视频卡片右侧白边 #1604

Merged
xiaoxia merged 1 commits from fix/product-thumb-white-border into develop 2026-09-01 14:30:42 +08:00
Owner

问题

成片库竖屏视频(9:16)卡片右侧出现白边。

根因

.xx-product-thumb 设置了 max-height: 320px,竖屏视频 aspectRatio 为 9/16 时,thumb 宽度被限制在 ~180px,但卡片网格列宽约 300px,右侧出现空白。

修复

移除 .xx-product-thumbmax-height: 320px,让 aspectRatio 根据网格列宽自然撑满。卡片宽度由 4 列网格控制,aspectRatio 会自然约束高度。

## 问题 成片库竖屏视频(9:16)卡片右侧出现白边。 ## 根因 `.xx-product-thumb` 设置了 `max-height: 320px`,竖屏视频 aspectRatio 为 9/16 时,thumb 宽度被限制在 ~180px,但卡片网格列宽约 300px,右侧出现空白。 ## 修复 移除 `.xx-product-thumb` 的 `max-height: 320px`,让 aspectRatio 根据网格列宽自然撑满。卡片宽度由 4 列网格控制,aspectRatio 会自然约束高度。
xiaoxia added 1 commit 2026-09-01 14:16:29 +08:00
fix(products): 移除thumb max-height限制,修复竖屏视频卡片右侧白边
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 4m49s
AI Code Review / AI Code Review (pull_request) Successful in 4m54s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 4m56s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 5m1s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 5m36s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 5m37s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 5m44s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 5m45s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 5m47s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 8m39s
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Successful in 1s
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
ACR Cleanup / ACR Image Cleanup (pull_request_target) Failing after 16m21s
Preview Cleanup / Cleanup Preview Environment (pull_request) Failing after 16m21s
f761a6bf07
根因:.xx-product-thumb 的 max-height:320px 在竖屏视频
(aspectRatio 9/16) 时限制宽度为180px,但卡片网格列宽约300px,
导致右侧出现白边。移除 max-height 让 aspectRatio 自然撑满列宽。
Collaborator

【阻塞级判定】

  • 是否存在阻塞级问题:否
  • 阻塞级问题数量:0 个

📊 审查概览

  • 整体评价:通过
  • 建议级问题数量:0 个

🔴 阻塞级问题(必须修复)

💡 改进建议(不阻塞合并)

良好实践


🤖 由 AI 代码审查机器人自动生成 | 2026-09-01 06:21:22 | 模型:

### 【阻塞级判定】 - 是否存在阻塞级问题:否 - 阻塞级问题数量:0 个 ### 📊 审查概览 - 整体评价:通过 - 建议级问题数量:0 个 ### 🔴 阻塞级问题(必须修复) 无 ### 💡 改进建议(不阻塞合并) 无 ### ✅ 良好实践 无 --- <sub>🤖 由 AI 代码审查机器人自动生成 | 2026-09-01 06:21:22 | 模型: </sub> <!-- AI_CODE_REVIEW_AUTO_COMMENT -->

🚀 预览环境已部署

项目 详情
PR号 #1604
预览链接 https://pr-1604.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #1604 | | 预览链接 | [https://pr-1604.preview.xiaoxiajianji.com](https://pr-1604.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
auto-approve-bot approved these changes 2026-09-01 14:22:17 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-09-01 14:22:17 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
xiaoxia merged commit adf6b517fb into develop 2026-09-01 14:30:42 +08:00
xiaoxia deleted branch fix/product-thumb-white-border 2026-09-01 14:30:42 +08:00
Sign in to join this conversation.