From 879b8f82a80b2e2f4c144416e910c3669eefb413 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 17:11:22 +0700 Subject: [PATCH] ui-canvas: Fit Artboard on Screen leaves 30 pt around the board on every side --- crates/ui-canvas/src/canvas/tools.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/ui-canvas/src/canvas/tools.rs b/crates/ui-canvas/src/canvas/tools.rs index 158f9817a..eea676962 100644 --- a/crates/ui-canvas/src/canvas/tools.rs +++ b/crates/ui-canvas/src/canvas/tools.rs @@ -23,9 +23,8 @@ use egui::Pos2; /// The rotation step of the Rotate View commands, in degrees. const ROTATE_STEP_DEG: f64 = 15.0; -/// The room Fit Artboard on Screen leaves around the board, in points: at the sides, and above and below (the board's -/// name sits above it). -const ARTBOARD_MARGIN: Vec2 = Vec2::new(30.0, 40.0); +/// The room Fit Artboard on Screen leaves around the board on each side, in points. +const ARTBOARD_MARGIN: Vec2 = Vec2::new(30.0, 30.0); /// The room Fit Layers on Screen leaves around the layers' bounds, in points. const LAYERS_MARGIN: Vec2 = Vec2::new(20.0, 20.0);