forked from 1b-agent/opencadstudio-upstream
Select Color: Document search box takes half the width
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013rGmDUNr1hUf4zo1X3dak8
This commit is contained in:
1 file changed
+14
-7
@@ -594,19 +594,26 @@ impl ColorPicker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn document_tab(&self) -> Element<'_, Message> {
|
fn document_tab(&self) -> Element<'_, Message> {
|
||||||
|
// Search on the left half; sorting and the view buttons on the right.
|
||||||
let header = row![
|
let header = row![
|
||||||
search_box(&self.doc_query, |query| ColorPickerMsg::DocQuery(query)),
|
container(search_box(&self.doc_query, |query| {
|
||||||
pick_list(Some(self.doc_sort), &DocSort::ALL[..], DocSort::to_string)
|
ColorPickerMsg::DocQuery(query)
|
||||||
.on_select(|by| picker_msg(ColorPickerMsg::DocSort(by)))
|
}))
|
||||||
.text_size(12)
|
.width(Length::FillPortion(1)),
|
||||||
.padding([6, 8]),
|
|
||||||
row![
|
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::GRID, DocView::Grid),
|
||||||
self.view_button(crate::ui::icons::LIST, DocView::List),
|
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);
|
.align_y(iced::Center);
|
||||||
if self.doc.is_empty() {
|
if self.doc.is_empty() {
|
||||||
return column![
|
return column![
|
||||||
|
|||||||
Reference in new issue
Block a user