From a68eb1290d751c6937030d712d513e058555d58d Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 17 Nov 2026 07:05:19 +0000 Subject: [PATCH] Rail story: allow marker covers its width scope --- crates/ui-panels/src/rails/tool/stories.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-panels/src/rails/tool/stories.rs b/crates/ui-panels/src/rails/tool/stories.rs index 1ded5d28d..87f6dd675 100644 --- a/crates/ui-panels/src/rails/tool/stories.rs +++ b/crates/ui-panels/src/rails/tool/stories.rs @@ -48,9 +48,9 @@ fn tool_rail(ui: &mut Ui, data: &mut StoryData) -> StoryOutput { let slots = slots(); let last = LastUsed::default(); let width = ToolRail::::dock_grid(ui.ctx(), slots.len() + 1).width(u16::from(columns)); + // design: allow[contract/memory](the story gives the rail the width of its chosen columns, as a dock column does) let out = ui .scope(|ui| { - // design: allow[contract/memory](the story gives the rail the width of its chosen columns, as a dock column does) ui.set_max_width(width); ToolRail::new("Tools", &slots, &BRUSH, &last).hidden(&hidden).edit_toolbar("Edit Toolbar").show_rail(ui, |_, _| {}) })