fix(#1754): ASS 标题位置常量同步前端改动(TOP 120→180, BOTTOM 60→100) (#1756)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 5s
CI/CD Pipeline / Build Staging API Image (push) Successful in 19s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 37s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m11s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m16s
CI/CD Pipeline / Validate - Style (push) Successful in 2m21s
CI/CD Pipeline / Integration Tests (push) Successful in 2m24s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m55s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 47s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m44s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 4m51s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m31s
CI/CD Pipeline / Validate - Security (push) Successful in 5m55s
AI Code Review / AI Code Review (pull_request) Successful in 6m21s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m27s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 3m49s
CI/CD Pipeline / Unit Tests (push) Successful in 7m59s
CI/CD Pipeline / Production Browser E2E (push) 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 / PR Build Web Image (pull_request) Successful in 31s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 31s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 32s
CI/CD Pipeline / CI Gate (pull_request) Successful in 4s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 216h19m8s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 216h19m11s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 216h26m0s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 216h26m0s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 216h26m6s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 216h26m9s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 216h26m9s
CI/CD Pipeline / Canary Release to Production (push) Failing after 216h36m42s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 216h26m10s
CI/CD Pipeline / CI Gate (push) Failing after 216h36m45s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 216h36m45s
CI/CD Pipeline / Build Production API Image (push) Failing after 216h36m45s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 216h41m2s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 216h42m13s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 216h42m13s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 216h42m13s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 216h26m8s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 216h26m8s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 216h26m8s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 216h26m9s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 216h26m9s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 216h44m43s
CI/CD Pipeline / PR Build API Image (push) Failing after 216h44m44s
CI/CD Pipeline / Frontend Lint (push) Failing after 216h44m45s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 216h44m49s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 216h53m45s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 216h53m48s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 217h0m41s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 217h0m44s
CI/CD Pipeline / Deploy Production (push) Failing after 217h11m19s
CI/CD Pipeline / Build Production Web Image (push) Failing after 217h11m22s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 217h0m37s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 217h0m43s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 216h53m48s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 217h0m46s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 217h0m45s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 217h0m46s
CI/CD Pipeline / PR Build Web Image (push) Failing after 217h19m21s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 5s
CI/CD Pipeline / Build Staging API Image (push) Successful in 19s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 37s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m11s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m16s
CI/CD Pipeline / Validate - Style (push) Successful in 2m21s
CI/CD Pipeline / Integration Tests (push) Successful in 2m24s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m55s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 47s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m44s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 4m51s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m31s
CI/CD Pipeline / Validate - Security (push) Successful in 5m55s
AI Code Review / AI Code Review (pull_request) Successful in 6m21s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m27s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 3m49s
CI/CD Pipeline / Unit Tests (push) Successful in 7m59s
CI/CD Pipeline / Production Browser E2E (push) 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 / PR Build Web Image (pull_request) Successful in 31s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 31s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 32s
CI/CD Pipeline / CI Gate (pull_request) Successful in 4s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 216h19m8s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 216h19m11s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 216h26m0s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 216h26m0s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 216h26m6s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 216h26m9s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 216h26m9s
CI/CD Pipeline / Canary Release to Production (push) Failing after 216h36m42s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 216h26m10s
CI/CD Pipeline / CI Gate (push) Failing after 216h36m45s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 216h36m45s
CI/CD Pipeline / Build Production API Image (push) Failing after 216h36m45s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 216h41m2s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 216h42m13s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 216h42m13s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 216h42m13s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 216h26m8s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 216h26m8s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 216h26m8s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 216h26m9s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 216h26m9s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 216h44m43s
CI/CD Pipeline / PR Build API Image (push) Failing after 216h44m44s
CI/CD Pipeline / Frontend Lint (push) Failing after 216h44m45s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 216h44m49s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 216h53m45s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 216h53m48s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 217h0m41s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 217h0m44s
CI/CD Pipeline / Deploy Production (push) Failing after 217h11m19s
CI/CD Pipeline / Build Production Web Image (push) Failing after 217h11m22s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 217h0m37s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 217h0m43s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 216h53m48s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 217h0m46s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 217h0m45s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 217h0m46s
CI/CD Pipeline / PR Build Web Image (push) Failing after 217h19m21s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #1756.
This commit is contained in:
@@ -20,8 +20,8 @@ logger = logging.getLogger(__name__)
|
||||
# ── 常量 ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
# Title/Subtitle 默认边距(像素)
|
||||
TITLE_MARGIN_TOP = 120
|
||||
TITLE_MARGIN_BOTTOM = 60
|
||||
TITLE_MARGIN_TOP = 180
|
||||
TITLE_MARGIN_BOTTOM = 100
|
||||
TITLE_MARGIN_SIDE = 40
|
||||
|
||||
# 字体名称映射:前端中文字体名 → 服务器实际注册名(ffmpeg/ASS 通过注册名匹配字体)
|
||||
|
||||
@@ -473,10 +473,10 @@ class TestBuildAssContent:
|
||||
|
||||
class TestConstants:
|
||||
def test_title_margin_top(self):
|
||||
assert TITLE_MARGIN_TOP == 120
|
||||
assert TITLE_MARGIN_TOP == 180
|
||||
|
||||
def test_title_margin_bottom(self):
|
||||
assert TITLE_MARGIN_BOTTOM == 60
|
||||
assert TITLE_MARGIN_BOTTOM == 100
|
||||
|
||||
def test_title_margin_side(self):
|
||||
assert TITLE_MARGIN_SIDE == 40
|
||||
|
||||
Reference in New Issue
Block a user