From cc2ab056429a6621e9b580c156ea8782b82caa64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B3=A2?= Date: Mon, 28 Sep 2026 22:35:30 +0800 Subject: [PATCH] story: Fit StatusBar demo sections to narrow windows Each StatusBar story section was fixed at 760px. The website embeds the gallery in an iframe about 748px wide, so the section overflowed the GroupBox content and was clipped on both sides by its centered, overflow-hidden container. Cap the width with max_w instead so the sections fill narrower windows and stay 760px in the desktop gallery. Co-Authored-By: Claude Opus 5.5 (1M context) --- crates/story/src/stories/status_bar_story.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/story/src/stories/status_bar_story.rs b/crates/story/src/stories/status_bar_story.rs index 538e9b6aa6..120a6f33e7 100644 --- a/crates/story/src/stories/status_bar_story.rs +++ b/crates/story/src/stories/status_bar_story.rs @@ -66,7 +66,7 @@ impl Render for StatusBarStory { .description( "Places repository state on the left and document state on the right.", ) - .w(px(760.)) + .max_w(px(760.)) .child( v_flex().w_full().child( StatusBar::new() @@ -144,7 +144,7 @@ impl Render for StatusBarStory { .child( section("Application") .description("Combines connectivity, progress, save state, and notifications.") - .w(px(760.)) + .max_w(px(760.)) .child( v_flex().w_full().child( StatusBar::new() @@ -181,7 +181,7 @@ impl Render for StatusBarStory { .child( section("Alignment") .description("Center content adapts when either side is empty or populated.") - .w(px(760.)) + .max_w(px(760.)) .child( v_flex() .w_full()