From 41223f09d714b0fbb0103e94805d9751ae1773da Mon Sep 17 00:00:00 2001 From: Karim Jerbi Date: Sat, 15 Aug 2026 09:53:23 +0100 Subject: [PATCH] feat(plot): read-only rows use the shared selectable read-only field --- src/ui/window/plot.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ui/window/plot.rs b/src/ui/window/plot.rs index 462c6ab2..db7678fc 100644 --- a/src/ui/window/plot.rs +++ b/src/ui/window/plot.rs @@ -401,9 +401,11 @@ fn drop_row_enabled<'a>( } row![ text(label).size(11).style(muted_style).width(92), - container(text(selected.map(|choice| choice.to_string()).unwrap_or_default()).size(12).style(muted_style)) - .padding([4, 7]) - .width(width), + crate::ui::read_only::field( + selected.map(|choice| choice.to_string()).unwrap_or_default().as_str(), + 12.0, + width, + ), ] .spacing(8) .align_y(iced::Center) @@ -442,9 +444,7 @@ fn field_row_enabled<'a>( } row![ text(label).size(11).style(muted_style).width(92), - container(text(value.to_string()).size(12).style(muted_style)) - .padding([4, 7]) - .width(width as f32), + crate::ui::read_only::field(value, 12.0, Length::Fixed(width as f32)), ] .spacing(8) .align_y(iced::Center)