From 1e8a98d2cda2a8854817b1453ac1d53616f25bbb Mon Sep 17 00:00:00 2001 From: Karim Jerbi Date: Sun, 28 Jun 2026 22:23:01 +0100 Subject: [PATCH] fix(ribbon): center section titles within their content width MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Section labels (Draw, Modify, Annotation, …) were left-aligned with a small padding. Set align_x(Center) on the parent column so the label container — still sized to its text width — is centred within the column, which itself remains sized by the tool buttons above. Sections keep their natural content-based width, no wasted space. --- src/ui/ribbon/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/ribbon/mod.rs b/src/ui/ribbon/mod.rs index b0aa11557..851dff27c 100644 --- a/src/ui/ribbon/mod.rs +++ b/src/ui/ribbon/mod.rs @@ -452,6 +452,7 @@ impl Ribbon { tools_el, container(text(group.title).size(9).color(GROUP_LABEL)).padding([1, 4]), ] + .align_x(iced::Center) .spacing(0) .padding([3u16, 4]) .height(Length::Fill)