From d8517449ac1f4016fdadb8cf8962e9c3862f505c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 Apr 2026 21:56:40 +0800 Subject: [PATCH] Fix LibTV composer overlay scale --- .../canvas/LiblibVideoCanvasReplica.tsx | 236 +++++++++++------- 1 file changed, 143 insertions(+), 93 deletions(-) diff --git a/components/canvas/LiblibVideoCanvasReplica.tsx b/components/canvas/LiblibVideoCanvasReplica.tsx index a79a3d90b..074a299b8 100644 --- a/components/canvas/LiblibVideoCanvasReplica.tsx +++ b/components/canvas/LiblibVideoCanvasReplica.tsx @@ -328,6 +328,11 @@ const CANVAS_EXTENT = 20000; const OFFICIAL_NODE_GAP = 100; const OFFICIAL_TEXT_RESOURCE_HEIGHT = 232; const OFFICIAL_TEXT_RESOURCE_WIDTH = 350; +const OFFICIAL_IMAGE_TOOLBAR_SCALE = 0.7; +const OFFICIAL_COMPOSER_SCALE = 0.47; +const PROMPT_COMPOSER_BASE_WIDTH = 895; +const PROMPT_COMPOSER_BASE_HEIGHT = 286; +const PRESET_COMPOSER_BASE_HEIGHT = 238; const TARGET_AVATAR = "https://liblibai-online.liblib.cloud/web/1656e2f1b3c74f1ba823b610f1b2cbdf/0c3eb5e2-1dc0-405c-a823-07b2570237f8.jpg?x-oss-process=image/resize,w_100,m_lfit/format,webp"; @@ -3154,15 +3159,24 @@ function CharacterPresetToolbar({ return ( <> -
+
setToolbarMenu((current) => current === "panorama" ? null : "panorama")} /> setToolbarMenu((current) => current === "orbit" ? null : "orbit")} /> setToolbarMenu((current) => current === "lighting" ? null : "lighting")} /> @@ -3287,16 +3301,20 @@ function PresetFloatingToolbar({ anchor?: PresetControlAnchor; items: Array<[string, string]>; }) { - return ( -
+ return ( +
{items.map(([label, message]) => ( -
- {title} - {thumbnailUrl ? ( -
- -
- ) : null} -
-