fix(#1754): ASS 标题位置常量同步前端改动(TOP 120→180, BOTTOM 60→100) #1756

Merged
auto-approve-bot merged 1 commits from fix/ass-title-margin-sync-1754 into develop 2026-09-07 14:39:28 +08:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 通过注册名匹配字体)
+2 -2
View File
@@ -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