Skip to content

Commit 3f9c727

Browse files
committed
Fix animation layout and responsiveness
1 parent e8cafc5 commit 3f9c727

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/tutorial-continuation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Base.show(io::IO, ::MIME"text/html", h::RawHTML) = print(io, h.raw)
286286
html_anim = """
287287
<div style="display: flex; justify-content: center; margin: 20px 0;">
288288
<canvas id="goddardCanvas" width="900" height="650"
289-
style="border:1px solid #ddd; background:#fafafa; border-radius: 8px; overflow: hidden;">
289+
style="border:1px solid #ddd; background:#fafafa; border-radius: 8px; max-width: 100%;">
290290
</canvas>
291291
</div>
292292
@@ -415,7 +415,7 @@ html_anim = """
415415
const v_gauge_width = 60;
416416
const v_gauge_height = 8;
417417
const v_gauge_x = center_x - v_gauge_width / 2;
418-
const v_gauge_y = rocket_y + 60;
418+
const v_gauge_y = rocket_y + 50;
419419
const v_level = Math.abs(v) / v_max_all;
420420
421421
// Velocity gauge background

0 commit comments

Comments
 (0)