fix: title default position lower & drag stability (#1690)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 5s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5s
CI/CD Pipeline / Check push changed paths (push) Successful in 8s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 16s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 32s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 32s
AI Code Review / AI Code Review (pull_request) Failing after 1m29s
CI/CD Pipeline / Build Staging API Image (push) Successful in 42s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 41s
CI/CD Pipeline / CI Gate (pull_request) Successful in 6s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m8s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m5s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 35s
CI/CD Pipeline / Integration Tests (push) Successful in 2m28s
CI/CD Pipeline / Validate - Style (push) Has been cancelled
CI/CD Pipeline / Validate - Security (push) Has been cancelled
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (push) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 288h5m30s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 288h5m30s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 288h5m32s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 288h5m36s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 288h5m30s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 288h5m37s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 288h5m43s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 288h5m52s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 288h5m52s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 288h5m53s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 288h7m27s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 288h5m54s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 288h7m28s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 288h7m28s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 288h7m29s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 288h7m29s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 288h7m46s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 288h7m47s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 288h7m47s
CI/CD Pipeline / Frontend Lint (push) Failing after 288h7m50s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 288h7m55s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 288h7m56s
CI/CD Pipeline / PR Build Web Image (push) Failing after 288h7m56s
CI/CD Pipeline / PR Build API Image (push) Failing after 288h7m56s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 288h7m58s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 288h40m4s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 288h40m10s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 288h40m20s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 288h40m23s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 288h41m56s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 288h41m57s

Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #1690.
This commit is contained in:
2026-09-04 15:16:45 +08:00
committed by auto-approve-bot
parent 3fcc65840e
commit 8a3115bc54
2 changed files with 6 additions and 4 deletions
@@ -87,7 +87,7 @@ const PreviewPlayer: React.FC<PreviewPlayerProps> = ({
WebkitTextStroke: "1px rgba(0,0,0,0.6)",
top:
titleConfig.position === "top"
? "8px"
? "6.25%"
: titleConfig.position === "center"
? "50%"
: "auto",
@@ -591,6 +591,8 @@ const FrontendPreviewPlayer: React.FC<FrontendPreviewPlayerProps> = ({
<div
style={{
position: "absolute",
width: `${100 - 2 * titleSidePct}%`,
maxWidth: `${100 - 2 * titleSidePct}%`,
...(customTitleXPct != null && customTitleYPct != null
? {
left: `${customTitleXPct}%`,
@@ -599,13 +601,13 @@ const FrontendPreviewPlayer: React.FC<FrontendPreviewPlayerProps> = ({
textAlign: "center" as const,
}
: {
left: `${titleSidePct}%`,
right: `${titleSidePct}%`,
left: "50%",
transform: "translateX(-50%)",
textAlign: "center" as const,
...(titleSettings.position === "top"
? { top: `${titleTopPct}%` }
: titleSettings.position === "center"
? { top: "50%", transform: "translateY(-50%)" }
? { top: "50%", transform: "translate(-50%, -50%)" }
: { bottom: `${titleBottomPct}%` }),
}),
pointerEvents: "auto",