From 31e6192729087791bdc752823e4c790d8b3ee767 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 14 Oct 2026 17:57:53 +0000 Subject: [PATCH] Select Color: Document search box takes half the width Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013rGmDUNr1hUf4zo1X3dak8 --- src/ui/color_select/picker.rs | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/ui/color_select/picker.rs b/src/ui/color_select/picker.rs index 0984fd65b..5287522d0 100644 --- a/src/ui/color_select/picker.rs +++ b/src/ui/color_select/picker.rs @@ -594,19 +594,26 @@ impl ColorPicker { } fn document_tab(&self) -> Element<'_, Message> { + // Search on the left half; sorting and the view buttons on the right. let header = row![ - search_box(&self.doc_query, |query| ColorPickerMsg::DocQuery(query)), - pick_list(Some(self.doc_sort), &DocSort::ALL[..], DocSort::to_string) - .on_select(|by| picker_msg(ColorPickerMsg::DocSort(by))) - .text_size(12) - .padding([6, 8]), + container(search_box(&self.doc_query, |query| { + ColorPickerMsg::DocQuery(query) + })) + .width(Length::FillPortion(1)), row![ + pick_list(Some(self.doc_sort), &DocSort::ALL[..], DocSort::to_string) + .on_select(|by| picker_msg(ColorPickerMsg::DocSort(by))) + .text_size(12) + .padding([6, 8]) + .width(Length::Fill), self.view_button(crate::ui::icons::GRID, DocView::Grid), self.view_button(crate::ui::icons::LIST, DocView::List), ] - .spacing(2), + .spacing(2) + .align_y(iced::Center) + .width(Length::FillPortion(1)), ] - .spacing(6) + .spacing(8) .align_y(iced::Center); if self.doc.is_empty() { return column![