From b2fb0af1641a09a6eebc453fe0c8a2f9276b691d Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 21 Nov 2026 15:01:04 -0500 Subject: [PATCH] Keep rail footer controls compact --- crates/ui-patterns/src/patterns/dock/area.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-patterns/src/patterns/dock/area.rs b/crates/ui-patterns/src/patterns/dock/area.rs index 40f458cc4..11e95e26b 100644 --- a/crates/ui-patterns/src/patterns/dock/area.rs +++ b/crates/ui-patterns/src/patterns/dock/area.rs @@ -4,7 +4,7 @@ use super::hide::{self, Shown}; use crate::contract::overlay::{PlacementChange, PlacementKind}; use crate::contract::{ - Bind, BindMut, BodyCx, Cx, Entry, Lazy, NoValue, Outcome, Pad, Pointer as _, Props as _, ShowContainer as _, Sizing, WordSetCx as _, + Bind, BindMut, BodyCx, Cx, Entry, Gap, Lazy, NoValue, Outcome, Pad, Pointer as _, Props as _, ShowContainer as _, Sizing, WordSetCx as _, }; use crate::docking::SplitFramesCx as _; use crate::docking::stack::{StackSection, StackSections, section_heights}; @@ -1054,7 +1054,8 @@ impl Pass<'_, P> { .id(dock.with(("rail footer", panel))) .pad(Pad::None) .footer(|ui, _| { - Stack::new().fill_width().show(ui, |ui, body| pass.borrow_mut().panels.rail_footer(panel, ui, body)); + // Compact rail controls leave room for the scrolling panel icons in short windows. + Stack::new().fill_width().gap(Gap::None).show(ui, |ui, body| pass.borrow_mut().panels.rail_footer(panel, ui, body)); }) .show_at(ui, cell, |ui, _| { let (rect, _) = ui.allocate_exact_size(Vec2::new(ui.available_width(), height), egui::Sense::hover());