From 13ccb82d8e5b6039924541b85b1c9bf531acf81f Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Thu, 24 Sep 2026 19:21:45 +0300 Subject: [PATCH] Reference panel: the palette launcher sits beside the title Co-Authored-By: Claude Opus 5.5 --- src/ui/ribbon/draw_panel.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ui/ribbon/draw_panel.rs b/src/ui/ribbon/draw_panel.rs index ae92d7ba3..6b356bb86 100644 --- a/src/ui/ribbon/draw_panel.rs +++ b/src/ui/ribbon/draw_panel.rs @@ -207,13 +207,11 @@ pub(super) fn group_title<'a>(title: &'static str, open: &Option) -> Ele ) .delay(Duration::from_millis(400)) .style(tip_style); - row![ - iced::widget::Space::new().width(Fill), - title_button, - container(launcher).width(Fill).align_x(iced::Right) - ] - .align_y(iced::Center) - .into() + // Shrink-sized: a Fill here would make the panel claim the whole row. + row![title_button, launcher] + .spacing(6) + .align_y(iced::Center) + .into() } fn tool_button(tool: &Tool, active: bool, panel_id: &'static str) -> Element<'static, Message> {