diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/html_renderer/mod.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/html_renderer/mod.rs index 275d1371d..ce53ef471 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/html_renderer/mod.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/html_renderer/mod.rs @@ -66,14 +66,10 @@ fn render_tree(state: &State, tree: &UITree) -> Result { / finite_positive(image.pixels_per_unit.get(), "UI design pixelsPerUnit")?; let tree_comment = html_comment( "genarrative-ui-tree", - json!({ - "srcUiDesign": tree.src_ui_design.as_str(), - "width": width, - "height": height, - }), + json!({"srcUiDesign": tree.src_ui_design.as_str()}), ); let style = format!( - "position:relative;width:100%;height:auto;min-height:0;aspect-ratio:{width} / {height};--ui-design-width:{width}px;--ui-design-height:{height}px;" + "position:relative;width:100%;height:auto;min-height:0;aspect-ratio:{width} / {height};" ); Ok(html! { (tree_comment)