From 0289890197a274d991995d46966b9f1c59ac2e79 Mon Sep 17 00:00:00 2001 From: aryans2611 Date: Fri, 23 Oct 2026 09:57:58 +0530 Subject: [PATCH 1/6] M6: mobile layout: one side panel at a time on phones, two-finger pan, scrolling toolbar Windows narrower than 760 pt show the Layers or Design panel over the canvas, opened from two touch-sized buttons. Two fingers pan as well as pinch. The main toolbar pill is capped to the canvas width and scrolls sideways (drag or wheel) when its buttons don't fit; the help button moves above it when they would overlap. The web page's viewport covers the safe area and stops touch scrolling and overscroll. Co-Authored-By: Claude Sonnet 5.5 --- apps/figcraft-web/index.html | 6 +-- crates/ui-egui/src/canvas.rs | 7 ++- crates/ui-egui/src/lib.rs | 62 ++++++++++++++++++++++--- crates/ui-egui/src/panel_width_tests.rs | 29 ++++++++++++ crates/ui-egui/src/toolbar.rs | 26 +++++++++-- 5 files changed, 116 insertions(+), 14 deletions(-) diff --git a/apps/figcraft-web/index.html b/apps/figcraft-web/index.html index 1a9969d5..f610aa81 100644 --- a/apps/figcraft-web/index.html +++ b/apps/figcraft-web/index.html @@ -2,12 +2,12 @@ - + FigCraft