修复资源画布播放控件缩放越界
Project CI / Repository checks (pull_request) Failing after 13s
Project CI / Backend tests (pull_request) Failing after 12s
Project CI / Frontend tests (pull_request) Successful in 3m12s
Project CI / Native shell tests (pull_request) Successful in 19m7s

将资源卡音视频播放控件的缩放原点固定到右下角。

增加播放控件缩放原点的样式回归断言。
This commit is contained in:
2026-09-08 11:06:03 +08:00
parent 7bacfebcfd
commit cd75b9a1b9
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -5979,7 +5979,7 @@ iframe.preview-frame {
.game-resource-card-media-control {
transform: scale(var(--genarrative-image-canvas-inverse-scale, 1));
transform-origin: center;
transform-origin: bottom right;
}
.game-resource-card-placeholder > svg *,
@@ -1986,6 +1986,9 @@ export function registerProjectWorkbenchFoundationTests() {
expect(styles).toMatch(
/\.game-resource-card-open\s*\{[^}]*cursor:\s*pointer[^}]*touch-action:\s*manipulation/s,
);
expect(styles).toMatch(
/\.game-resource-card-media-control\s*\{[^}]*transform:\s*scale\(var\(--genarrative-image-canvas-inverse-scale,\s*1\)\)[^}]*transform-origin:\s*bottom\s+right/s,
);
expect(styles).toMatch(
/\.game-resource-canvas\s*\{[^}]*user-select:\s*none/s,
);